diff options
author | Joseph Frazier <1212jtraceur@gmail.com> | 2016-02-10 03:12:52 +0300 |
---|---|---|
committer | Joseph Frazier <1212jtraceur@gmail.com> | 2016-02-10 05:08:34 +0300 |
commit | 66f2fae4e480bd8e5413cf74002b247282796cf4 (patch) | |
tree | 5c46eca019ba24f7e27dc992baaba14ecfcb203e /test | |
parent | f5bd86acbe5f6b5dac71202f151ecd21de4b3361 (diff) |
Fix syntax of magnet URI test
https://github.com/feross/webtorrent/commit/83226a40445d0a6987f15a7e010758ab8bc8dc0a
Diffstat (limited to 'test')
-rw-r--r-- | test/stream.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/stream.js b/test/stream.js index c50b51f..8294593 100644 --- a/test/stream.js +++ b/test/stream.js @@ -1,5 +1,3 @@ -/* global Blob */ - var test = require('tape') var Readable = require('readable-stream').Readable var WebTorrent = require('../') @@ -13,7 +11,7 @@ test('client.seed: stream', function (t) { var tracker = new Tracker() var seeder, client tracker.listen(function () { - announce.push('http://localhost:'+tracker.http.address().port) + announce.push('http://localhost:' + tracker.http.address().port) seeder = new WebTorrent({ dht: false }) client = new WebTorrent({ dht: false }) @@ -25,7 +23,7 @@ test('client.seed: stream', function (t) { seed() }) tracker.on('start', function () { - console.log('START', argument) + console.log('START', arguments) }) t.once('end', function () { @@ -34,7 +32,7 @@ test('client.seed: stream', function (t) { tracker.close() }) - var stream = new Readable + var stream = new Readable() stream._read = function () {} stream.push('HELLO WORLD\n') stream.push(null) |