Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('parse url-list for webseed support', t => {
const torrent = parseTorrent(fixtures.bunny.torrent)
t.deepEqual(torrent.urlList, ['http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_stereo_abl.mp4'])
t.end()
})
function (cb) {
client = new WebTorrent({
tracker: false,
dht: { bootstrap: '127.0.0.1:' + dhtServer.address().port }
})
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
var torrent = client.add(fixtures.bunny.parsedTorrent, { store: MemoryChunkStore })
torrent.on('dhtAnnounce', function () {
t.fail('client announced to dht')
})
client.on('torrent', function () {
if (!torrent.discovery.dht) {
t.pass('dht is disabled for this torrent')
cb(null)
}
})
}
], function (err) {