feat: add get apps method

This commit is contained in:
StevanFreeborn
2023-01-27 22:53:14 -06:00
parent fa1a952cb2
commit 5a6c5094e9
7 changed files with 106 additions and 11 deletions
+27
View File
@@ -0,0 +1,27 @@
import { PagedResponse } from '../src/models/PagedResponse';
import { expect } from 'chai';
describe('PagedResponse', function () {
it('should be defined', function () {
expect(PagedResponse).to.not.be.undefined;
});
it('should have a constructor', function () {
expect(PagedResponse).to.have.property('constructor');
});
it('should have 4 parameters', function () {
expect(PagedResponse).to.have.lengthOf(4);
});
it('should construct a new instance of PagedResponse', function () {
const pagedResponse = new PagedResponse<number>([1, 2, 3, 4], 1, 10, 100);
expect(pagedResponse).to.not.be.undefined;
expect(pagedResponse).to.be.instanceOf(PagedResponse);
expect(pagedResponse).to.have.property('items').to.be.an('array').to.have.lengthOf(4);
expect(pagedResponse).to.have.property('pageNumber').to.be.a('number').to.equal(1);
expect(pagedResponse).to.have.property('pageSize').to.be.a('number').to.equal(10);
expect(pagedResponse).to.have.property('totalCount').to.be.a('number').to.equal(100);
});
});