diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2019-07-06 00:37:45 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2019-07-06 00:37:45 +0300 |
commit | 733e571a436951a8178d293cfa7315ad6bccf6b5 (patch) | |
tree | 67ab51ccacce61a69da4378a0063edd58535babe /test/client-add.js | |
parent | 7d747efeca17a20298c51e2f393e38622c4053cd (diff) |
standard
Diffstat (limited to 'test/client-add.js')
-rw-r--r-- | test/client-add.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/client-add.js b/test/client-add.js index 009cdc6..3a46dbe 100644 --- a/test/client-add.js +++ b/test/client-add.js @@ -135,7 +135,7 @@ test('client.add: parsed torrent, with string type announce property', function t.equal(torrent.magnetURI, expectedMagnetURI) // `torrent.announce` must always be an array - t.deepEqual(torrent.announce, [ 'http://tracker.local:80' ]) + t.deepEqual(torrent.announce, ['http://tracker.local:80']) client.remove(fixtures.leaves.parsedTorrent, function (err) { t.error(err, 'torrent destroyed') }) t.equal(client.torrents.length, 0) @@ -153,7 +153,7 @@ test('client.add: parsed torrent, with array type announce property', function ( client.on('warning', function (err) { t.fail(err) }) var parsedTorrent = Object.assign({}, fixtures.leaves.parsedTorrent) - parsedTorrent.announce = [ 'http://tracker.local:80', 'http://tracker.local:81' ] + parsedTorrent.announce = ['http://tracker.local:80', 'http://tracker.local:81'] var torrent = client.add(parsedTorrent) t.equal(client.torrents.length, 1) @@ -166,7 +166,7 @@ test('client.add: parsed torrent, with array type announce property', function ( '&tr=' + encodeURIComponent('http://tracker.local:81') t.equal(torrent.magnetURI, expectedMagnetURI) - t.deepEqual(torrent.announce, [ 'http://tracker.local:80', 'http://tracker.local:81' ]) + t.deepEqual(torrent.announce, ['http://tracker.local:80', 'http://tracker.local:81']) client.remove(fixtures.leaves.parsedTorrent, function (err) { t.error(err, 'torrent destroyed') }) t.equal(client.torrents.length, 0) |