File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,7 @@ describe('rest query', () => {
46
46
}
47
47
describe ( 'without masterKey' , ( ) => {
48
48
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 ( ( ) => {
52
50
return rest . find ( config , nobody , '_User' )
53
51
} ) . then ( ( result ) => {
54
52
var user = result . results [ 0 ] ;
@@ -61,9 +59,7 @@ describe('rest query', () => {
61
59
} ) ;
62
60
describe ( 'with masterKey' , ( ) => {
63
61
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 ( ( ) => {
67
63
return rest . find ( config , { isMaster : true } , '_User' )
68
64
} ) . then ( ( result ) => {
69
65
var user = result . results [ 0 ] ;
You can’t perform that action at this time.
0 commit comments