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
path: root/test/node
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-01-10 20:43:15 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-11 02:09:00 +0300
commit2f6948b7006d7704baa63c9ab6247764ac4d6777 (patch)
treeca727034cc6f2e0c51c553efaeb1f711d26dc27c /test/node
parenta364fbfb461b4c923ecb2b105cc7bfff7aaff764 (diff)
test: fix test
Diffstat (limited to 'test/node')
-rw-r--r--test/node/cmd.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/node/cmd.js b/test/node/cmd.js
index 8c334b3..4c4f9e2 100644
--- a/test/node/cmd.js
+++ b/test/node/cmd.js
@@ -57,6 +57,7 @@ test('Command line: webtorrent info /path/to/file.torrent', function (t) {
var parsedTorrent = extend(common.leaves.parsedTorrent)
delete parsedTorrent.info
delete parsedTorrent.infoBuffer
+ delete parsedTorrent.infoHashBuffer
t.deepEqual(data, JSON.parse(JSON.stringify(parsedTorrent, undefined, 2)))
})
@@ -74,6 +75,7 @@ test('Command line: webtorrent info magnet_uri', function (t) {
t.error(err)
data = JSON.parse(data)
var parsedTorrent = parseTorrent(leavesMagnetURI)
+ delete parsedTorrent.infoHashBuffer
t.deepEqual(data, JSON.parse(JSON.stringify(parsedTorrent, undefined, 2)))
})
})