feat: implement getFieldsByAppId method

This commit is contained in:
StevanFreeborn
2023-02-03 11:45:15 -06:00
parent 0559f60726
commit 59a12cb8b6
6 changed files with 84 additions and 5 deletions
+5 -2
View File
@@ -49,8 +49,11 @@ describe('EndpointFactory', function () {
describe('getFieldsByAppIdEndpoint', function () {
it('should return the correct fields by app id endpoint', function () {
const result = EndpointFactory.getFieldsByAppIdEndpoint(1);
expect(result).to.equal('/Fields/appId/1');
const result = EndpointFactory.getFieldsByAppIdEndpoint(
1,
new PagingRequest(2, 1000)
);
expect(result).to.equal('/Fields/appId/1?pageSize=1000&pageNumber=2');
});
});