aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-10-21 11:33:31 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-10-21 11:33:31 +0200
commitb3d92510157f9066ea7fa82c303bea7a10eb55b6 (patch)
treeb5879aae311680ad0014a2a90f82b5ca180a836a /server/tests/api
parent80a6c9e76fda57f01e37fe4620771ae70738a211 (diff)
downloadPeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.tar.gz
PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.tar.zst
PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.zip
Server: Uploads -> Videos
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/single-pod.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js
index 623a1a6a3..3125312ca 100644
--- a/server/tests/api/single-pod.js
+++ b/server/tests/api/single-pod.js
@@ -245,11 +245,18 @@ describe('Test a single pod', function () {
245 videosUtils.removeVideo(server.url, server.accessToken, videoId, function (err) { 245 videosUtils.removeVideo(server.url, server.accessToken, videoId, function (err) {
246 if (err) throw err 246 if (err) throw err
247 247
248 fs.readdir(pathUtils.join(__dirname, '../../../test1/uploads/'), function (err, files) { 248 fs.readdir(pathUtils.join(__dirname, '../../../test1/videos/'), function (err, files) {
249 if (err) throw err 249 if (err) throw err
250 250
251 expect(files.length).to.equal(0) 251 expect(files.length).to.equal(0)
252 done() 252
253 fs.readdir(pathUtils.join(__dirname, '../../../test1/thumbnails/'), function (err, files) {
254 if (err) throw err
255
256 expect(files.length).to.equal(0)
257
258 done()
259 })
253 }) 260 })
254 }) 261 })
255 }) 262 })