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
path: root/test
diff options
context:
space:
mode:
authorJoseph Frazier <1212jtraceur@gmail.com>2016-02-10 03:12:52 +0300
committerJoseph Frazier <1212jtraceur@gmail.com>2016-02-10 05:08:34 +0300
commit66f2fae4e480bd8e5413cf74002b247282796cf4 (patch)
tree5c46eca019ba24f7e27dc992baaba14ecfcb203e /test
parentf5bd86acbe5f6b5dac71202f151ecd21de4b3361 (diff)
Fix syntax of magnet URI test
https://github.com/feross/webtorrent/commit/83226a40445d0a6987f15a7e010758ab8bc8dc0a
Diffstat (limited to 'test')
-rw-r--r--test/stream.js8
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)