mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add video files migration
This commit is contained in:
parent
90a8bd305d
commit
2451916e45
5 changed files with 74 additions and 23 deletions
|
@ -22,9 +22,9 @@ const expect = chai.expect
|
|||
|
||||
function assertVideoProperties (video: VideoFile, resolution: number, extname: string, size?: number) {
|
||||
expect(video).to.have.nested.property('resolution.id', resolution)
|
||||
expect(video).to.have.property('magnetUri').that.includes(`.${extname}`)
|
||||
expect(video).to.have.property('torrentUrl').that.includes(`-${resolution}.torrent`)
|
||||
expect(video).to.have.property('fileUrl').that.includes(`.${extname}`)
|
||||
expect(video).to.have.property('magnetUri').that.includes(`.${extname}`)
|
||||
expect(video).to.have.property('size').that.is.above(0)
|
||||
|
||||
if (size) expect(video.size).to.equal(size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue