diff options
Diffstat (limited to 'server/tests/cli/create-import-video-file-job.ts')
-rw-r--r-- | server/tests/cli/create-import-video-file-job.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts index aa24e6996..2cf2dd8f8 100644 --- a/server/tests/cli/create-import-video-file-job.ts +++ b/server/tests/cli/create-import-video-file-job.ts | |||
@@ -1,6 +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 | ||
3 | import * as chai from 'chai' | 3 | import { expect } from 'chai' |
4 | import { areObjectStorageTestsDisabled } from '@shared/core-utils' | 4 | import { areObjectStorageTestsDisabled } from '@shared/core-utils' |
5 | import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models' | 5 | import { HttpStatusCode, VideoDetails, VideoFile, VideoInclude } from '@shared/models' |
6 | import { | 6 | import { |
@@ -15,8 +15,6 @@ import { | |||
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | import { expectStartWith } from '../shared' | 16 | import { expectStartWith } from '../shared' |
17 | 17 | ||
18 | const expect = chai.expect | ||
19 | |||
20 | function assertVideoProperties (video: VideoFile, resolution: number, extname: string, size?: number) { | 18 | function assertVideoProperties (video: VideoFile, resolution: number, extname: string, size?: number) { |
21 | expect(video).to.have.nested.property('resolution.id', resolution) | 19 | expect(video).to.have.nested.property('resolution.id', resolution) |
22 | expect(video).to.have.property('torrentUrl').that.includes(`-${resolution}.torrent`) | 20 | expect(video).to.have.property('torrentUrl').that.includes(`-${resolution}.torrent`) |