From 1bab4cfe9a1ba88b6e9d379f2bbb0e5892483fac Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 31 Oct 2023 15:06:40 +0800 Subject: [PATCH] fix: drop form collection instead of the whole db... --- __tests__/e2e/email-submission.spec.ts | 2 +- __tests__/e2e/encrypt-submission.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/e2e/email-submission.spec.ts b/__tests__/e2e/email-submission.spec.ts index 545dce5b78..8fcc03bfbe 100644 --- a/__tests__/e2e/email-submission.spec.ts +++ b/__tests__/e2e/email-submission.spec.ts @@ -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() }) diff --git a/__tests__/e2e/encrypt-submission.spec.ts b/__tests__/e2e/encrypt-submission.spec.ts index 9e33306954..6635ffa86f 100644 --- a/__tests__/e2e/encrypt-submission.spec.ts +++ b/__tests__/e2e/encrypt-submission.spec.ts @@ -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() })