Skip to content

Commit

Permalink
Hotfix for tests (#1503)
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart authored and drew-gross committed Apr 15, 2016
1 parent 1023baf commit eef51cf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/RestQuery.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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];
Expand Down

0 comments on commit eef51cf

Please sign in to comment.