Skip to content

Commit

Permalink
fix: drop form collection instead of the whole db...
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Oct 31, 2023
1 parent e01ba35 commit 1bab4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/e2e/email-submission.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ test.describe('Email form submission', () => {
})
test.afterAll(async () => {
// Clean up db
await db.dropDatabase()
await db.dropCollection(Form.collection.name)
await db.close()
})

Expand Down
2 changes: 1 addition & 1 deletion __tests__/e2e/encrypt-submission.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test.describe('Storage form submission', () => {
})
test.afterAll(async () => {
// Clean up db
await db.dropDatabase()
await db.dropCollection(Form.collection.name)
await db.close()
})

Expand Down

0 comments on commit 1bab4cf

Please sign in to comment.