aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/check-params/config.ts')
-rw-r--r--server/tests/api/check-params/config.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts
index d67e51123..3415625ca 100644
--- a/server/tests/api/check-params/config.ts
+++ b/server/tests/api/check-params/config.ts
@@ -1,7 +1,6 @@
1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ 1/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
2 2import { merge } from 'lodash'
3import 'mocha' 3import { omit } from '@shared/core-utils'
4import { merge, omit } from 'lodash'
5import { CustomConfig, HttpStatusCode } from '@shared/models' 4import { CustomConfig, HttpStatusCode } from '@shared/models'
6import { 5import {
7 cleanupTests, 6 cleanupTests,
@@ -277,7 +276,7 @@ describe('Test config API validators', function () {
277 }) 276 })
278 277
279 it('Should fail if it misses a key', async function () { 278 it('Should fail if it misses a key', async function () {
280 const newUpdateParams = omit(updateParams, 'admin.email') 279 const newUpdateParams = { ...updateParams, admin: omit(updateParams.admin, [ 'email' ]) }
281 280
282 await makePutBodyRequest({ 281 await makePutBodyRequest({
283 url: server.url, 282 url: server.url,