Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-01-14 01:19:44 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-14 01:19:44 +0300
commit218eea5420deb4a9d057cd33105631dffa2a867c (patch)
tree9635ba88f1c9139a2a09dc6ef4361f88d2fa29c8 /test/duplicate.js
parent2413dc38fc5a502680324e8e468f22c6706ad204 (diff)
split up tests
Diffstat (limited to 'test/duplicate.js')
-rw-r--r--test/duplicate.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/duplicate.js b/test/duplicate.js
deleted file mode 100644
index 66e8fd2..0000000
--- a/test/duplicate.js
+++ /dev/null
@@ -1,22 +0,0 @@
-var common = require('./common')
-var test = require('tape')
-var WebTorrent = require('../')
-
-test('client.add: magnet uri, utf-8 string', function (t) {
- t.plan(3)
-
- var client = new WebTorrent({ dht: false, tracker: false })
-
- client.on('error', function (err) { t.fail(err) })
- client.on('warning', function (err) { t.fail(err) })
-
- var torrent = client.add(common.leaves.torrent, {
- announce: [ 'wss://example.com', 'wss://example.com', 'wss://example.com' ]
- })
-
- torrent.on('ready', function () {
- t.equal(torrent.magnetURI, common.leaves.magnetURI + '&tr=' + encodeURIComponent('wss://example.com'))
- client.remove(common.leaves.magnetURI, function (err) { t.error(err, 'torrent destroyed') })
- client.destroy(function (err) { t.error(err, 'client destroyed') })
- })
-})