diff options
author | charlierudolph <charles.rudolph@originate.com> | 2015-07-17 16:09:57 -0700 |
---|---|---|
committer | charlierudolph <charles.rudolph@originate.com> | 2015-07-17 16:09:57 -0700 |
commit | d82a8fe5c9132fb9214098613cd7e85261bfc6c4 (patch) | |
tree | 878d119a01bc2021284c53070bad4a1cdfd46396 /mocha_test | |
parent | 8910bde1710a9a8a4c542f8d5d6f994dc325c2d6 (diff) | |
download | async-d82a8fe5c9132fb9214098613cd7e85261bfc6c4.tar.gz |
update files
Diffstat (limited to 'mocha_test')
-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 |