feat: implement getFieldsByAppId method

This commit is contained in:
StevanFreeborn committed 2023-02-03 11:45:15 -06:00
1 parent 0559f60726
commit 59a12cb8b6
6 files changed
+84 -5

No files matched your search

+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');
});
});