aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api/singlePod.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api/singlePod.js')
-rw-r--r--tests/api/singlePod.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/api/singlePod.js b/tests/api/singlePod.js
index e5337256b..f33aa8c7a 100644
--- a/tests/api/singlePod.js
+++ b/tests/api/singlePod.js
@@ -5,8 +5,9 @@
5 var chai = require('chai') 5 var chai = require('chai')
6 var expect = chai.expect 6 var expect = chai.expect
7 var fs = require('fs') 7 var fs = require('fs')
8 var pathUtils = require('path')
8 9
9 var webtorrent = require(__dirname + '/../../lib/webtorrent') 10 var webtorrent = require(pathUtils.join(__dirname, '../../lib/webtorrent'))
10 webtorrent.silent = true 11 webtorrent.silent = true
11 12
12 var utils = require('./utils') 13 var utils = require('./utils')
@@ -112,7 +113,7 @@
112 utils.removeVideo(url, video_id, function (err) { 113 utils.removeVideo(url, video_id, function (err) {
113 if (err) throw err 114 if (err) throw err
114 115
115 fs.readdir(__dirname + '/../../test1/uploads/', function (err, files) { 116 fs.readdir(pathUtils.join(__dirname, '../../test1/uploads/'), function (err, files) {
116 if (err) throw err 117 if (err) throw err
117 118
118 expect(files.length).to.equal(0) 119 expect(files.length).to.equal(0)