diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-19 09:15:42 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-19 09:15:42 +0100 |
commit | adcaf1a8671b85f62f77058edd50fe146cb41c8e (patch) | |
tree | 4b11af5895e37c4fffee2350be748377cc43dae5 /server/tests | |
parent | 0edf0581a92a2c0b5423d3947934d0f36bda1592 (diff) | |
download | PeerTube-adcaf1a8671b85f62f77058edd50fe146cb41c8e.tar.gz PeerTube-adcaf1a8671b85f62f77058edd50fe146cb41c8e.tar.zst PeerTube-adcaf1a8671b85f62f77058edd50fe146cb41c8e.zip |
Fix embed button outline
Diffstat (limited to 'server/tests')
-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 | } |