summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mocha_test/forever.js (renamed from mocha_test/forever_test.js)2
-rw-r--r--mocha_test/support/is_browser.js (renamed from mocha_test/support.js)6
2 files changed, 2 insertions, 6 deletions
diff --git a/mocha_test/forever_test.js b/mocha_test/forever.js
index ca9c80e..3f03b57 100644
--- a/mocha_test/forever_test.js
+++ b/mocha_test/forever.js
@@ -1,6 +1,6 @@
var async = require('../lib/async');
var expect = require('chai').expect;
-var isBrowser = require('./support').isBrowser;
+var isBrowser = require('./support/is_browser');
describe('forever', function(){
context('function is asynchronous', function(){
diff --git a/mocha_test/support.js b/mocha_test/support/is_browser.js
index f4e231b..7c765e2 100644
--- a/mocha_test/support.js
+++ b/mocha_test/support/is_browser.js
@@ -1,8 +1,4 @@
-support = {}
-
-support.isBrowser = function() {
+module.exports = function() {
return (typeof process === "undefined") ||
(process + "" !== "[object process]"); // browserify
}
-
-module.exports = support