fix: test formatting
This commit is contained in:
@@ -16,14 +16,35 @@ describe('GetPagedAppsResponse', function () {
|
||||
});
|
||||
|
||||
it('should construct a new instance of GetPagedAppsResponse', function () {
|
||||
const getPagedAppsResponse = new GetPagedAppsResponse([new App('test', 1, 'test'), new App('test', 1, 'test')], 1, 10, 100, 100);
|
||||
const getPagedAppsResponse = new GetPagedAppsResponse(
|
||||
[new App('test', 1, 'test'), new App('test', 1, 'test')],
|
||||
1,
|
||||
10,
|
||||
100,
|
||||
100
|
||||
);
|
||||
|
||||
expect(getPagedAppsResponse).to.not.be.undefined;
|
||||
expect(getPagedAppsResponse).to.be.instanceOf(GetPagedAppsResponse);
|
||||
expect(getPagedAppsResponse).to.have.property('items').to.be.an('array').to.have.lengthOf(2);
|
||||
expect(getPagedAppsResponse).to.have.property('pageNumber').to.be.a('number').to.equal(1);
|
||||
expect(getPagedAppsResponse).to.have.property('pageSize').to.be.a('number').to.equal(10);
|
||||
expect(getPagedAppsResponse).to.have.property('totalPages').to.be.a('number').to.equal(100);
|
||||
expect(getPagedAppsResponse).to.have.property('totalRecords').to.be.a('number').to.equal(100);
|
||||
expect(getPagedAppsResponse)
|
||||
.to.have.property('items')
|
||||
.to.be.an('array')
|
||||
.to.have.lengthOf(2);
|
||||
expect(getPagedAppsResponse)
|
||||
.to.have.property('pageNumber')
|
||||
.to.be.a('number')
|
||||
.to.equal(1);
|
||||
expect(getPagedAppsResponse)
|
||||
.to.have.property('pageSize')
|
||||
.to.be.a('number')
|
||||
.to.equal(10);
|
||||
expect(getPagedAppsResponse)
|
||||
.to.have.property('totalPages')
|
||||
.to.be.a('number')
|
||||
.to.equal(100);
|
||||
expect(getPagedAppsResponse)
|
||||
.to.have.property('totalRecords')
|
||||
.to.be.a('number')
|
||||
.to.equal(100);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user