diff options
Diffstat (limited to 'server/tests/api/check-params/live.ts')
-rw-r--r-- | server/tests/api/check-params/live.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.ts index b092f16f9..3f553c42b 100644 --- a/server/tests/api/check-params/live.ts +++ b/server/tests/api/check-params/live.ts | |||
@@ -1,9 +1,7 @@ | |||
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 | ||
3 | import 'mocha' | ||
4 | import { expect } from 'chai' | 3 | import { expect } from 'chai' |
5 | import { omit } from 'lodash' | 4 | import { buildAbsoluteFixturePath, omit } from '@shared/core-utils' |
6 | import { buildAbsoluteFixturePath } from '@shared/core-utils' | ||
7 | import { HttpStatusCode, LiveVideoLatencyMode, VideoCreateResult, VideoPrivacy } from '@shared/models' | 5 | import { HttpStatusCode, LiveVideoLatencyMode, VideoCreateResult, VideoPrivacy } from '@shared/models' |
8 | import { | 6 | import { |
9 | cleanupTests, | 7 | cleanupTests, |
@@ -132,7 +130,7 @@ describe('Test video lives API validator', function () { | |||
132 | }) | 130 | }) |
133 | 131 | ||
134 | it('Should fail without a channel', async function () { | 132 | it('Should fail without a channel', async function () { |
135 | const fields = omit(baseCorrectParams, 'channelId') | 133 | const fields = omit(baseCorrectParams, [ 'channelId' ]) |
136 | 134 | ||
137 | await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) | 135 | await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields }) |
138 | }) | 136 | }) |