File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Contexts/Shared/infrastructure Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ describe('Create a client', () => {
6
6
let client : MongoClient ;
7
7
8
8
beforeEach ( async ( ) => {
9
- client = await factory . createClient ( 'test' ) ;
9
+ client = await factory . createClient ( 'test' , { url : 'mongodb://localhost:27017/mooc-backend-test' } ) ;
10
10
} ) ;
11
11
12
12
afterEach ( async ( ) => {
@@ -19,15 +19,15 @@ describe('Create a client', () => {
19
19
} ) ;
20
20
21
21
it ( 'creates a new client if it does not exist a client with the given name' , async ( ) => {
22
- const newClient = await factory . createClient ( 'test2' ) ;
22
+ const newClient = await factory . createClient ( 'test2' , { url : 'mongodb://localhost:27017/mooc-backend-test' } ) ;
23
23
24
24
expect ( newClient ) . not . toBe ( client ) ;
25
25
26
26
await newClient . close ( ) ;
27
27
} ) ;
28
28
29
29
it ( 'returns a client if it already exists' , async ( ) => {
30
- const newClient = await factory . createClient ( 'test' ) ;
30
+ const newClient = await factory . createClient ( 'test' , { url : 'mongodb://localhost:27017/mooc-backend-test' } ) ;
31
31
32
32
expect ( newClient ) . toBe ( client ) ;
33
33
You can’t perform that action at this time.
0 commit comments