Skip to content

Commit 55c9625

Browse files
committed
feat: remove no longer needed db.close() in teardown
1 parent 8c5072b commit 55c9625

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

mongo-aggregate.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ describe('insert', () => {
1111

1212
afterAll(async () => {
1313
await connection.close();
14-
await db.close();
1514
});
1615

1716
it('should aggregate docs from collection', async () => {

mongo-insert.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ describe('insert', () => {
1111

1212
afterAll(async () => {
1313
await connection.close();
14-
await db.close();
1514
});
1615

1716
it('should insert a doc into collection', async () => {

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ describe('insert', () => {
5353

5454
afterAll(async () => {
5555
await connection.close();
56-
await db.close();
5756
});
5857
});
5958
```

0 commit comments

Comments
 (0)