Hotfix for tests (#1503)
This commit is contained in:
@@ -46,9 +46,7 @@ describe('rest query', () => {
|
|||||||
}
|
}
|
||||||
describe('without masterKey', () => {
|
describe('without masterKey', () => {
|
||||||
it('has them stripped from results', (done) => {
|
it('has them stripped from results', (done) => {
|
||||||
database.adaptiveCollection('_User').then((collection) => {
|
database.create('_User', data).then(() => {
|
||||||
return collection.insertOne(data);
|
|
||||||
}).then(() => {
|
|
||||||
return rest.find(config, nobody, '_User')
|
return rest.find(config, nobody, '_User')
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
var user = result.results[0];
|
var user = result.results[0];
|
||||||
@@ -61,9 +59,7 @@ describe('rest query', () => {
|
|||||||
});
|
});
|
||||||
describe('with masterKey', () => {
|
describe('with masterKey', () => {
|
||||||
it('has them stripped from results', (done) => {
|
it('has them stripped from results', (done) => {
|
||||||
database.adaptiveCollection('_User').then((collection) => {
|
database.create('_User', data).then(() => {
|
||||||
return collection.insertOne(data);
|
|
||||||
}).then(() => {
|
|
||||||
return rest.find(config, {isMaster: true}, '_User')
|
return rest.find(config, {isMaster: true}, '_User')
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
var user = result.results[0];
|
var user = result.results[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user