diff options
Diffstat (limited to 'server/tests/cli')
-rw-r--r-- | server/tests/cli/create-import-video-file-job.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts index 7eaf2c19e..49758ff56 100644 --- a/server/tests/cli/create-import-video-file-job.ts +++ b/server/tests/cli/create-import-video-file-job.ts | |||
@@ -22,9 +22,9 @@ const expect = chai.expect | |||
22 | 22 | ||
23 | function assertVideoProperties (video: VideoFile, resolution: number, extname: string, size?: number) { | 23 | function assertVideoProperties (video: VideoFile, resolution: number, extname: string, size?: number) { |
24 | expect(video).to.have.nested.property('resolution.id', resolution) | 24 | expect(video).to.have.nested.property('resolution.id', resolution) |
25 | expect(video).to.have.property('magnetUri').that.includes(`.${extname}`) | ||
26 | expect(video).to.have.property('torrentUrl').that.includes(`-${resolution}.torrent`) | 25 | expect(video).to.have.property('torrentUrl').that.includes(`-${resolution}.torrent`) |
27 | expect(video).to.have.property('fileUrl').that.includes(`.${extname}`) | 26 | expect(video).to.have.property('fileUrl').that.includes(`.${extname}`) |
27 | expect(video).to.have.property('magnetUri').that.includes(`.${extname}`) | ||
28 | expect(video).to.have.property('size').that.is.above(0) | 28 | expect(video).to.have.property('size').that.is.above(0) |
29 | 29 | ||
30 | if (size) expect(video.size).to.equal(size) | 30 | if (size) expect(video.size).to.equal(size) |