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:
Diffstat (limited to 'test/node/download-webseed-torrent.js')
-rw-r--r--test/node/download-webseed-torrent.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/node/download-webseed-torrent.js b/test/node/download-webseed-torrent.js
index c257fd0..c248857 100644
--- a/test/node/download-webseed-torrent.js
+++ b/test/node/download-webseed-torrent.js
@@ -1,4 +1,3 @@
-var extend = require('xtend')
var finalhandler = require('finalhandler')
var fixtures = require('webtorrent-fixtures')
var http = require('http')
@@ -16,7 +15,7 @@ test('Download using webseed (via .torrent file)', function (t) {
t.plan(6)
t.timeoutAfter(WEB_SEED_TIMEOUT_MS)
- var parsedTorrent = extend(fixtures.leaves.parsedTorrent)
+ var parsedTorrent = Object.assign({}, fixtures.leaves.parsedTorrent)
var httpServer = http.createServer(function (req, res) {
var done = finalhandler(req, res)
@@ -78,7 +77,7 @@ test('Download using webseed (via .torrent file)', function (t) {
})
test('Disable webseeds', function (t) {
- var parsedTorrent = extend(fixtures.leaves.parsedTorrent)
+ var parsedTorrent = Object.assign({}, fixtures.leaves.parsedTorrent)
var httpServer = http.createServer(function (req, res) {
t.fail('webseed http server should not get any requests')