aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-17 09:36:09 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-18 13:38:09 +0100
commit2451916e45420fedf556913ce121f3964c4b57d6 (patch)
treec8a0e35285cac08acc0a2f3fefb33a27006e9df5 /server/tests
parent90a8bd305de4153ec21137a73ff482dcc2e3e19b (diff)
downloadPeerTube-2451916e45420fedf556913ce121f3964c4b57d6.tar.gz
PeerTube-2451916e45420fedf556913ce121f3964c4b57d6.tar.zst
PeerTube-2451916e45420fedf556913ce121f3964c4b57d6.zip
Add video files migration
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/cli/create-import-video-file-job.ts2
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
23function assertVideoProperties (video: VideoFile, resolution: number, extname: string, size?: number) { 23function 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)