diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:39:37 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 10:39:37 +0100 |
commit | b3077e417056f18225957f65419b87de72117fe3 (patch) | |
tree | be00437c83175ca09b184df6fb21ffe149e11ff8 /tests/api/singlePod.js | |
parent | c5a8be2b6282d2042e469e1b7c1e7ce8795c026f (diff) | |
download | PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.gz PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.zst PeerTube-b3077e417056f18225957f65419b87de72117fe3.zip |
Standard v6
Diffstat (limited to 'tests/api/singlePod.js')
-rw-r--r-- | tests/api/singlePod.js | 5 |
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) |