diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/tests/cli/update-host.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/tests/cli/update-host.ts b/server/tests/cli/update-host.ts index 4358f28e3..39242c494 100644 --- a/server/tests/cli/update-host.ts +++ b/server/tests/cli/update-host.ts | |||
@@ -1,3 +1,5 @@ | |||
1 | /* tslint:disable:no-unused-expression */ | ||
2 | |||
1 | import 'mocha' | 3 | import 'mocha' |
2 | import * as chai from 'chai' | 4 | import * as chai from 'chai' |
3 | const expect = chai.expect | 5 | const expect = chai.expect |
@@ -66,7 +68,12 @@ describe('Test update host scripts', function () { | |||
66 | expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F') | 68 | expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F') |
67 | 69 | ||
68 | const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution) | 70 | const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution) |
69 | expect(torrent.announce[0]).to.equal('ws://localhost:9002/tracker/socket') | 71 | const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket') |
72 | expect(announceWS).to.not.be.undefined | ||
73 | |||
74 | const announceHttp = torrent.announce.find(a => a === 'http://localhost:9002/tracker/announce') | ||
75 | expect(announceHttp).to.not.be.undefined | ||
76 | |||
70 | expect(torrent.urlList[0]).to.contain('http://localhost:9002/static/webseed') | 77 | expect(torrent.urlList[0]).to.contain('http://localhost:9002/static/webseed') |
71 | } | 78 | } |
72 | } | 79 | } |