diff options
Diffstat (limited to 'test/api/singlePod.js')
-rw-r--r-- | test/api/singlePod.js | 11 |
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 | ||