Skip to content

Commit eef51cf

Browse files
flovilmartdrew-gross
authored andcommitted
Hotfix for tests (#1503)
1 parent 1023baf commit eef51cf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

spec/RestQuery.spec.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ describe('rest query', () => {
4646
}
4747
describe('without masterKey', () => {
4848
it('has them stripped from results', (done) => {
49-
database.adaptiveCollection('_User').then((collection) => {
50-
return collection.insertOne(data);
51-
}).then(() => {
49+
database.create('_User', data).then(() => {
5250
return rest.find(config, nobody, '_User')
5351
}).then((result) => {
5452
var user = result.results[0];
@@ -61,9 +59,7 @@ describe('rest query', () => {
6159
});
6260
describe('with masterKey', () => {
6361
it('has them stripped from results', (done) => {
64-
database.adaptiveCollection('_User').then((collection) => {
65-
return collection.insertOne(data);
66-
}).then(() => {
62+
database.create('_User', data).then(() => {
6763
return rest.find(config, {isMaster: true}, '_User')
6864
}).then((result) => {
6965
var user = result.results[0];

0 commit comments

Comments
 (0)