File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments