From c45f7f84001c2731909db04dd82e1c1f290386eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 31 Jan 2016 11:23:52 +0100 Subject: Infile code reorganization --- tests/api/singlePod.js | 2 +- tests/api/utils.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') 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 @@ var async = require('async') var chai = require('chai') - var fs = require('fs') var expect = chai.expect + var fs = require('fs') var webtorrent = require(__dirname + '/../../lib/webTorrentNode') 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 @@ var fork = child_process.fork var request = require('supertest') - module.exports = { + var testUtils = { flushTests: flushTests, getFriendsList: getFriendsList, getVideosList: getVideosList, @@ -179,4 +179,8 @@ .expect(201) .end(end) } + + // --------------------------------------------------------------------------- + + module.exports = testUtils })() -- cgit v1.2.3