From 94d1a2569fa1da97332930b438e1b6c69dd3172a Mon Sep 17 00:00:00 2001 From: seaerchin Date: Wed, 7 Apr 2021 15:42:06 +0800 Subject: [PATCH] chore(helpers/jest-db): removed unused helper method --- tests/unit/backend/helpers/jest-db.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/unit/backend/helpers/jest-db.ts b/tests/unit/backend/helpers/jest-db.ts index 5e9ce1a90e..751ca8d169 100644 --- a/tests/unit/backend/helpers/jest-db.ts +++ b/tests/unit/backend/helpers/jest-db.ts @@ -15,7 +15,6 @@ import { IUserSchema, ResponseMode, } from 'src/types' -import { SettingsUpdateDto } from 'src/types/api' import MemoryDatabaseServer from 'tests/database' @@ -220,16 +219,6 @@ const getFullFormById = async ( ): Promise => await getEmailFormModel(mongoose).getFullFormById(formId) -// 1. Get full form by id -// 2. Patch in new settings -const updateForm = async ( - formId: string, - settingsToUpdate: SettingsUpdateDto, -): Promise => - await getEmailFormModel(mongoose) - .findByIdAndUpdate(formId, settingsToUpdate) - .exec() - const dbHandler = { connect, closeDatabase, @@ -241,7 +230,6 @@ const dbHandler = { insertEmailForm, insertEncryptForm, getFullFormById, - updateForm, } export default dbHandler