aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/multiple-pods.js10
-rw-r--r--server/tests/api/single-pod.js2
2 files changed, 6 insertions, 6 deletions
diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js
index 169a9f2e0..df12ba0e9 100644
--- a/server/tests/api/multiple-pods.js
+++ b/server/tests/api/multiple-pods.js
@@ -312,7 +312,7 @@ describe('Test multiple pods', function () {
312 expect(torrent.files.length).to.equal(1) 312 expect(torrent.files.length).to.equal(1)
313 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 313 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
314 314
315 webtorrent.remove(video.magnetUri, done) 315 done()
316 }) 316 })
317 }) 317 })
318 }) 318 })
@@ -331,7 +331,7 @@ describe('Test multiple pods', function () {
331 expect(torrent.files.length).to.equal(1) 331 expect(torrent.files.length).to.equal(1)
332 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 332 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
333 333
334 webtorrent.remove(video.magnetUri, done) 334 done()
335 }) 335 })
336 }) 336 })
337 }) 337 })
@@ -350,7 +350,7 @@ describe('Test multiple pods', function () {
350 expect(torrent.files.length).to.equal(1) 350 expect(torrent.files.length).to.equal(1)
351 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 351 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
352 352
353 webtorrent.remove(video.magnetUri, done) 353 done()
354 }) 354 })
355 }) 355 })
356 }) 356 })
@@ -369,7 +369,7 @@ describe('Test multiple pods', function () {
369 expect(torrent.files.length).to.equal(1) 369 expect(torrent.files.length).to.equal(1)
370 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 370 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
371 371
372 webtorrent.remove(video.magnetUri, done) 372 done()
373 }) 373 })
374 }) 374 })
375 }) 375 })
@@ -419,7 +419,7 @@ describe('Test multiple pods', function () {
419 expect(torrent.files.length).to.equal(1) 419 expect(torrent.files.length).to.equal(1)
420 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 420 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
421 421
422 webtorrent.remove(videoUpdated.magnetUri, callback) 422 callback()
423 }) 423 })
424 }) 424 })
425 }) 425 })
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index 04b93fac7..2ac83bbf4 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -96,7 +96,7 @@ describe('Test a single pod', function () {
96 expect(torrent.files.length).to.equal(1) 96 expect(torrent.files.length).to.equal(1)
97 expect(torrent.files[0].path).to.exist.and.to.not.equal('') 97 expect(torrent.files[0].path).to.exist.and.to.not.equal('')
98 98
99 webtorrent.remove(video.magnetUri, done) 99 done()
100 }) 100 })
101 }) 101 })
102 }) 102 })