From 0e4fa9b01ecfaa4250ae18357c7207c74beb1e26 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 27 Dec 2015 20:02:05 +0100 Subject: test: improve cmd download test --- test/cmd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 (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) }) -- cgit v1.2.3