Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: improve cmd download test #539

Merged
merged 1 commit into from Dec 27, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -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)
})
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.