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:
authorFeross Aboukhadijeh <feross@feross.org>2015-03-07 01:19:27 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-03-07 01:19:27 +0300
commit2a3c90fb20942ab7e6eee709508d3564b349cc01 (patch)
tree4af6e1c628f94245eeab034bd02205c79258232e /test
parentd769be82dd052a4d963321e7b6d592d15e5f1395 (diff)
style
Diffstat (limited to 'test')
-rw-r--r--test/basic.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/basic.js b/test/basic.js
index 6310a51..3e195e7 100644
--- a/test/basic.js
+++ b/test/basic.js
@@ -49,7 +49,7 @@ test('client.add (magnet uri, torrent file, info hash, and parsed torrent)', fun
})
test('client.seed (Buffer, Blob)', function (t) {
- t.plan(typeof Blob !== 'undefined' ? 4 : 2)
+ t.plan(global.Blob !== undefined ? 4 : 2)
var opts = {
name: 'Leaves of Grass by Walt Whitman.epub',
@@ -72,9 +72,9 @@ test('client.seed (Buffer, Blob)', function (t) {
})
// Blob
- if (typeof Blob !== 'undefined') {
+ if (global.Blob !== undefined) {
var client2 = new WebTorrent({ dht: false, tracker: false })
- client2.seed(new Blob([ leavesBook ]), opts, function (torrent2) {
+ client2.seed(new global.Blob([ leavesBook ]), opts, function (torrent2) {
t.equal(torrent2.infoHash, leavesTorrent.infoHash)
t.equal(torrent2.magnetURI, leavesMagnetURI)
client2.destroy()