From 15c1905bcd3af31ed75babbb5ad44b9f26c76ad3 Mon Sep 17 00:00:00 2001 From: Florent Vilmart Date: Thu, 14 Apr 2016 20:14:05 -0400 Subject: [PATCH] Hotfix for tests --- spec/RestQuery.spec.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spec/RestQuery.spec.js b/spec/RestQuery.spec.js index 3d6ae04bc6..4655bca705 100644 --- a/spec/RestQuery.spec.js +++ b/spec/RestQuery.spec.js @@ -46,9 +46,7 @@ describe('rest query', () => { } describe('without masterKey', () => { it('has them stripped from results', (done) => { - database.adaptiveCollection('_User').then((collection) => { - return collection.insertOne(data); - }).then(() => { + database.create('_User', data).then(() => { return rest.find(config, nobody, '_User') }).then((result) => { var user = result.results[0]; @@ -61,9 +59,7 @@ describe('rest query', () => { }); describe('with masterKey', () => { it('has them stripped from results', (done) => { - database.adaptiveCollection('_User').then((collection) => { - return collection.insertOne(data); - }).then(() => { + database.create('_User', data).then(() => { return rest.find(config, {isMaster: true}, '_User') }).then((result) => { var user = result.results[0];