feat: begin implementing getReportsByAppId method

This commit is contained in:
Stevan Freeborn
2023-02-08 16:38:36 +00:00
parent b6605a4275
commit f0aeb51f60
7 changed files with 142 additions and 4 deletions
+5 -2
View File
@@ -162,8 +162,11 @@ describe('EndpointFactory', function () {
describe('getReportsByAppIdEndpoint', function () {
it('should return the correct reports by app id endpoint', function () {
const result = EndpointFactory.getReportsByAppIdEndpoint(1);
expect(result).to.equal('/Reports/appId/1');
const result = EndpointFactory.getReportsByAppIdEndpoint(
1,
new PagingRequest(2, 1000)
);
expect(result).to.equal('/Reports/appId/1?pageSize=1000&pageNumber=2');
});
});
});