From 733e571a436951a8178d293cfa7315ad6bccf6b5 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 5 Jul 2019 14:37:45 -0700 Subject: standard --- test/client-add.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/client-add.js') 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) -- cgit v1.2.3