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