aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/api/singlePod.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-06 17:34:15 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-06 17:34:31 +0100
commitf5a60a5138135a3412dfbcfd6e564f7aa47a55c2 (patch)
tree2516f410a33792f9112b4b4253929e5292908a3f /test/api/singlePod.js
parenta6fa7ac141637a5026388157084c439f920c5ff1 (diff)
downloadPeerTube-f5a60a5138135a3412dfbcfd6e564f7aa47a55c2.tar.gz
PeerTube-f5a60a5138135a3412dfbcfd6e564f7aa47a55c2.tar.zst
PeerTube-f5a60a5138135a3412dfbcfd6e564f7aa47a55c2.zip
Add API versionning
Diffstat (limited to 'test/api/singlePod.js')
-rw-r--r--test/api/singlePod.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/api/singlePod.js b/test/api/singlePod.js
index 5c4c892bb..bc9243c1c 100644
--- a/test/api/singlePod.js
+++ b/test/api/singlePod.js
@@ -3,6 +3,7 @@
3 3
4 var request = require('supertest') 4 var request = require('supertest')
5 var chai = require('chai') 5 var chai = require('chai')
6 var fs = require('fs')
6 var expect = chai.expect 7 var expect = chai.expect
7 var webtorrent = require(__dirname + '/../../src/webTorrentNode') 8 var webtorrent = require(__dirname + '/../../src/webTorrentNode')
8 webtorrent.silent = true 9 webtorrent.silent = true
@@ -10,7 +11,7 @@
10 var utils = require('../utils') 11 var utils = require('../utils')
11 12
12 describe('Test a single pod', function () { 13 describe('Test a single pod', function () {
13 var path = '/api/videos' 14 var path = '/api/v1/videos'
14 var app = null 15 var app = null
15 var url = '' 16 var url = ''
16 var video_id = -1 17 var video_id = -1
@@ -98,7 +99,13 @@
98 .expect(204) 99 .expect(204)
99 .end(function (err, res) { 100 .end(function (err, res) {
100 if (err) throw err 101 if (err) throw err
101 done() 102
103 fs.readdir(__dirname + '/../../test1/uploads/', function (err, files) {
104 if (err) throw err
105
106 expect(files.length).to.equal(0)
107 done()
108 })
102 }) 109 })
103 }) 110 })
104 111