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:
-rw-r--r--test/cmd.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cmd.js b/test/cmd.js
index ee8a87b..5699a0e 100644
--- a/test/cmd.js
+++ b/test/cmd.js
@@ -99,6 +99,15 @@ test('Command line: webtorrent create /path/to/file', function (t) {
})
})
+test('Command line: webtorrent download --port 80', function (t) {
+ t.plan(2)
+
+ cp.exec(CMD + ' --port 80 --out test/content download test/torrents/leaves.torrent', function (err, data) {
+ t.error(err)
+ t.ok(data.indexOf('successfully') !== -1)
+ })
+})
+
// TODO: test 'webtorrent download /path/to/torrent'
// TODO: test 'webtorrent download magnet_uri'
// TODO: test 'webtorrent seed /path/to/file'