diff options
Diffstat (limited to 'server/tests/api/check-params/config.ts')
-rw-r--r-- | server/tests/api/check-params/config.ts | 7 |
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 | 2 | import { merge } from 'lodash' | |
3 | import 'mocha' | 3 | import { omit } from '@shared/core-utils' |
4 | import { merge, omit } from 'lodash' | ||
5 | import { CustomConfig, HttpStatusCode } from '@shared/models' | 4 | import { CustomConfig, HttpStatusCode } from '@shared/models' |
6 | import { | 5 | import { |
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, |