diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-27 22:02:05 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-27 22:02:05 +0300 |
commit | 0e4fa9b01ecfaa4250ae18357c7207c74beb1e26 (patch) | |
tree | 2f862e9e4bfd2df657390f5ddbe57d90cc73debd /test | |
parent | 081385d06aab74364b7aed53bbd6dbed134cfbd9 (diff) |
test: improve cmd download test
Diffstat (limited to 'test')
-rw-r--r-- | test/cmd.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmd.js b/test/cmd.js index 461b54d..3cece10 100644 --- a/test/cmd.js +++ b/test/cmd.js @@ -99,10 +99,10 @@ test('Command line: webtorrent create /path/to/file', function (t) { }) }) -test('Command line: webtorrent download --port 80', function (t) { +test('Command line: webtorrent download <torrent file> (with local content)', function (t) { t.plan(2) - cp.exec(CMD + ' --port 80 --out test/content download test/torrents/leaves.torrent', function (err, data) { + cp.exec(CMD + ' download test/torrents/leaves.torrent --out test/content', function (err, data) { t.error(err) t.ok(data.indexOf('successfully') !== -1) }) |