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/torrent-events.js')
-rw-r--r--test/node/torrent-events.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/node/torrent-events.js b/test/node/torrent-events.js
index bb2de83..32adb1f 100644
--- a/test/node/torrent-events.js
+++ b/test/node/torrent-events.js
@@ -53,7 +53,7 @@ test('client.add: emit torrent events in order', t => {
})
test('client.seed: emit torrent events in order', t => {
- t.plan(5)
+ t.plan(6)
const client = new WebTorrent({ dht: false, tracker: false, lsd: false })
@@ -78,7 +78,9 @@ test('client.seed: emit torrent events in order', t => {
torrent.on('done', () => {
t.equal(++order, 4)
-
+ })
+ torrent.on('seed', () => {
+ t.equal(++order, 5)
client.destroy(err => { t.error(err, 'client destroyed') })
})
})