aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-19 12:36:41 +0100
committerChocobozzz <me@florianbigard.com>2018-03-19 14:20:04 +0100
commit5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952 (patch)
tree924c46daaac9ef56108d8c449f934b6de344ae72 /server/tests/cli
parent09700934b90e2ac7b1b9ed1694d9d4d52735e2e1 (diff)
downloadPeerTube-5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952.tar.gz
PeerTube-5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952.tar.zst
PeerTube-5d00a3d7aa4309f1da5ac7d6e3ed63181eb34952.zip
Update the api documentation
Diffstat (limited to 'server/tests/cli')
-rw-r--r--server/tests/cli/update-host.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts
index 39242c494..ad56f7b1b 100644
--- a/server/tests/cli/update-host.ts
+++ b/server/tests/cli/update-host.ts
@@ -2,6 +2,7 @@
2 2
3import 'mocha' 3import 'mocha'
4import * as chai from 'chai' 4import * as chai from 'chai'
5import { VideoDetails } from '../../../shared/models/videos'
5const expect = chai.expect 6const expect = chai.expect
6 7
7import { 8import {
@@ -59,7 +60,7 @@ describe('Test update host scripts', function () {
59 60
60 for (const video of videos) { 61 for (const video of videos) {
61 const res2 = await getVideo(server.url, video.id) 62 const res2 = await getVideo(server.url, video.id)
62 const videoDetails = res2.body 63 const videoDetails: VideoDetails = res2.body
63 64
64 expect(videoDetails.files).to.have.lengthOf(4) 65 expect(videoDetails.files).to.have.lengthOf(4)
65 66
@@ -67,7 +68,7 @@ describe('Test update host scripts', function () {
67 expect(file.magnetUri).to.contain('localhost%3A9002%2Ftracker%2Fsocket') 68 expect(file.magnetUri).to.contain('localhost%3A9002%2Ftracker%2Fsocket')
68 expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F') 69 expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F')
69 70
70 const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution) 71 const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution.id)
71 const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket') 72 const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket')
72 expect(announceWS).to.not.be.undefined 73 expect(announceWS).to.not.be.undefined
73 74