File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11.node-persist
22.env *
3- data /mongo /*
3+ data /mongo /*
4+ node_modules
5+ tests /test.test.js
Original file line number Diff line number Diff line change @@ -2,27 +2,23 @@ const MongoDB = require('../models/mongo')
22const insertRandomNames = require ( '../models/setup' )
33
44describe ( 'insert' , ( ) => {
5- let db ;
5+ let db
66
77 beforeAll ( async ( ) => {
88 db = await MongoDB . connectDB ( 'test' )
9- } ) ;
9+ } )
1010
1111 afterAll ( async ( done ) => {
1212 await db . collection ( 'names' ) . deleteMany ( { } )
1313 await MongoDB . disconnectDB ( )
1414 done ( )
15- } ) ;
16-
17- beforeEach ( async ( ) => {
18-
19- } ) ;
15+ } )
2016
2117 it ( 'should insert the random names' , async ( ) => {
2218 await insertRandomNames ( )
2319
2420 const names = await db . collection ( "names" ) . find ( ) . toArray ( )
2521 expect ( names . length ) . toBeGreaterThan ( 0 )
26- } ) ;
22+ } )
2723
28- } ) ;
24+ } )
You can’t perform that action at this time.
0 commit comments