fix: in can connect test mock underlying axios instance's get method

This commit is contained in:
StevanFreeborn
2023-01-27 22:21:38 -06:00
parent cad208cd4c
commit fa1a952cb2
5 changed files with 212 additions and 7 deletions
+9
View File
@@ -29,4 +29,13 @@ describe('PagingRequest', function () {
it('should create a new instance of the PagingRequest class when the pageNumber is greater than 0 and the pageSize is between 1 and 1000', function () {
expect(() => new PagingRequest(1, 1)).to.not.throw();
});
it('should create a new instance of the PagingRequest class with the correct properties and values', function () {
const pagingRequest = new PagingRequest(1, 1);
expect(pagingRequest).to.have.property('pageNumber');
expect(pagingRequest).to.have.property('pageSize');
expect(pagingRequest.pageNumber).to.equal(1);
expect(pagingRequest.pageSize).to.equal(1);
});
});