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
diff options
context:
space:
mode:
authorJimmy Wärting <jimmy@warting.se>2018-08-29 14:22:31 +0300
committerJimmy Wärting <jimmy@warting.se>2018-08-29 14:22:31 +0300
commit87930170c178bafef993af33a628b7a3861941fe (patch)
treeeee5388148a51ef512252ed1109433af3c2a0748 /test/client-add.js
parent7b53faa23d4bb6d4ae0581ff7cb505c08c3809a0 (diff)
bye bye xtend
Diffstat (limited to 'test/client-add.js')
-rw-r--r--test/client-add.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/client-add.js b/test/client-add.js
index a3a18cd..009cdc6 100644
--- a/test/client-add.js
+++ b/test/client-add.js
@@ -1,5 +1,4 @@
var Buffer = require('safe-buffer').Buffer
-var extend = require('xtend')
var fixtures = require('webtorrent-fixtures')
var test = require('tape')
var WebTorrent = require('../')
@@ -122,7 +121,7 @@ test('client.add: parsed torrent, with string type announce property', function
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
- var parsedTorrent = extend(fixtures.leaves.parsedTorrent)
+ var parsedTorrent = Object.assign({}, fixtures.leaves.parsedTorrent)
parsedTorrent.announce = 'http://tracker.local:80'
var torrent = client.add(parsedTorrent)
@@ -153,7 +152,7 @@ test('client.add: parsed torrent, with array type announce property', function (
client.on('error', function (err) { t.fail(err) })
client.on('warning', function (err) { t.fail(err) })
- var parsedTorrent = extend(fixtures.leaves.parsedTorrent)
+ var parsedTorrent = Object.assign({}, fixtures.leaves.parsedTorrent)
parsedTorrent.announce = [ 'http://tracker.local:80', 'http://tracker.local:81' ]
var torrent = client.add(parsedTorrent)