diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/node/basic.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/node/basic.js b/test/node/basic.js index 8bf598c..7559309 100644 --- a/test/node/basic.js +++ b/test/node/basic.js @@ -99,7 +99,7 @@ test('client.seed: filesystem path to folder with one file, string', function (t client.on('error', function (err) { t.fail(err) }) client.on('warning', function (err) { t.fail(err) }) - client.seed(fixtures.folder.contentPath, {announce: false}, function (torrent) { + client.seed(fixtures.folder.contentPath, {announce: []}, function (torrent) { t.equal(client.torrents.length, 1) t.equal(torrent.infoHash, fixtures.folder.parsedTorrent.infoHash) t.equal(torrent.magnetURI, fixtures.folder.magnetURI) @@ -119,7 +119,7 @@ test('client.seed: filesystem path to folder with multiple files, string', funct client.on('error', function (err) { t.fail(err) }) client.on('warning', function (err) { t.fail(err) }) - client.seed(fixtures.numbers.contentPath, {announce: false}, function (torrent) { + client.seed(fixtures.numbers.contentPath, {announce: []}, function (torrent) { t.equal(client.torrents.length, 1) t.equal(torrent.infoHash, fixtures.numbers.parsedTorrent.infoHash) t.equal(torrent.magnetURI, fixtures.numbers.magnetURI) |