create + use adapter count instead of collection count

This commit is contained in:
Drew Gross
2016-05-23 19:00:58 -07:00
parent 1ae1d42c32
commit 14938bbe7a
3 changed files with 10 additions and 6 deletions

View File

@@ -123,11 +123,9 @@ describe('InstallationsRouter', () => {
var router = new InstallationsRouter();
rest.create(config, auth.nobody(config), '_Installation', androidDeviceRequest)
.then(() => {
return rest.create(config, auth.nobody(config), '_Installation', iosDeviceRequest);
}).then(() => {
return router.handleFind(request);
}).then((res) => {
.then(() => rest.create(config, auth.nobody(config), '_Installation', iosDeviceRequest))
.then(() => router.handleFind(request))
.then((res) => {
var response = res.response;
expect(response.results.length).toEqual(2);
expect(response.count).toEqual(2);