From adcaf1a8671b85f62f77058edd50fe146cb41c8e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Jan 2018 09:15:42 +0100 Subject: Fix embed button outline --- server/tests/cli/update-host.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'server/tests') 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 @@ +/* tslint:disable:no-unused-expression */ + import 'mocha' import * as chai from 'chai' const expect = chai.expect @@ -66,7 +68,12 @@ describe('Test update host scripts', function () { expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F') const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution) - expect(torrent.announce[0]).to.equal('ws://localhost:9002/tracker/socket') + const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket') + expect(announceWS).to.not.be.undefined + + const announceHttp = torrent.announce.find(a => a === 'http://localhost:9002/tracker/announce') + expect(announceHttp).to.not.be.undefined + expect(torrent.urlList[0]).to.contain('http://localhost:9002/static/webseed') } } -- cgit v1.2.3