aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/singlePod.js2
-rw-r--r--tests/api/utils.js6
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})()