diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-01-31 11:23:52 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-01-31 11:23:52 +0100 |
commit | c45f7f84001c2731909db04dd82e1c1f290386eb (patch) | |
tree | b7e57420a1f65dfbbacc1a532bf489c9bea6125d /tests/api | |
parent | cda021079ff455cc0fd0eb95a5395fa808ab63d1 (diff) | |
download | PeerTube-c45f7f84001c2731909db04dd82e1c1f290386eb.tar.gz PeerTube-c45f7f84001c2731909db04dd82e1c1f290386eb.tar.zst PeerTube-c45f7f84001c2731909db04dd82e1c1f290386eb.zip |
Infile code reorganization
Diffstat (limited to 'tests/api')
-rw-r--r-- | tests/api/singlePod.js | 2 | ||||
-rw-r--r-- | tests/api/utils.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/api/singlePod.js b/tests/api/singlePod.js index ce3ca80f2..7621d766c 100644 --- a/tests/api/singlePod.js +++ b/tests/api/singlePod.js | |||
@@ -3,8 +3,8 @@ | |||
3 | 3 | ||
4 | var async = require('async') | 4 | var async = require('async') |
5 | var chai = require('chai') | 5 | var chai = require('chai') |
6 | var fs = require('fs') | ||
7 | var expect = chai.expect | 6 | var expect = chai.expect |
7 | var fs = require('fs') | ||
8 | 8 | ||
9 | var webtorrent = require(__dirname + '/../../lib/webTorrentNode') | 9 | var webtorrent = require(__dirname + '/../../lib/webTorrentNode') |
10 | webtorrent.silent = true | 10 | webtorrent.silent = true |
diff --git a/tests/api/utils.js b/tests/api/utils.js index afb0abb33..a1996b4d7 100644 --- a/tests/api/utils.js +++ b/tests/api/utils.js | |||
@@ -6,7 +6,7 @@ | |||
6 | var fork = child_process.fork | 6 | var fork = child_process.fork |
7 | var request = require('supertest') | 7 | var request = require('supertest') |
8 | 8 | ||
9 | module.exports = { | 9 | var testUtils = { |
10 | flushTests: flushTests, | 10 | flushTests: flushTests, |
11 | getFriendsList: getFriendsList, | 11 | getFriendsList: getFriendsList, |
12 | getVideosList: getVideosList, | 12 | getVideosList: getVideosList, |
@@ -179,4 +179,8 @@ | |||
179 | .expect(201) | 179 | .expect(201) |
180 | .end(end) | 180 | .end(end) |
181 | } | 181 | } |
182 | |||
183 | // --------------------------------------------------------------------------- | ||
184 | |||
185 | module.exports = testUtils | ||
182 | })() | 186 | })() |