diff options
Diffstat (limited to 'server/tests/api/check-params/users.ts')
-rw-r--r-- | server/tests/api/check-params/users.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/tests/api/check-params/users.ts b/server/tests/api/check-params/users.ts index 4c4f54958..7acfd8c2c 100644 --- a/server/tests/api/check-params/users.ts +++ b/server/tests/api/check-params/users.ts | |||
@@ -1,8 +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 | |||
3 | import 'mocha' | ||
4 | import { omit } from 'lodash' | ||
5 | import { MockSmtpServer } from '@server/tests/shared' | 2 | import { MockSmtpServer } from '@server/tests/shared' |
3 | import { omit } from '@shared/core-utils' | ||
6 | import { HttpStatusCode, UserRole } from '@shared/models' | 4 | import { HttpStatusCode, UserRole } from '@shared/models' |
7 | import { cleanupTests, createSingleServer, makePostBodyRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' | 5 | import { cleanupTests, createSingleServer, makePostBodyRequest, PeerTubeServer, setAccessTokensToServers } from '@shared/server-commands' |
8 | 6 | ||
@@ -57,7 +55,7 @@ describe('Test users API validators', function () { | |||
57 | }) | 55 | }) |
58 | 56 | ||
59 | it('Should fail with a missing email', async function () { | 57 | it('Should fail with a missing email', async function () { |
60 | const fields = omit(baseCorrectParams, 'email') | 58 | const fields = omit(baseCorrectParams, [ 'email' ]) |
61 | 59 | ||
62 | await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) | 60 | await makePostBodyRequest({ url: server.url, path: registrationPath, token: server.accessToken, fields }) |
63 | }) | 61 | }) |