Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

1.21.3

Travis Jeffery0ffc612e6368
diff --git a/bower.json b/bower.json
index 8c00eebf..94341c98 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "mocha",
- "version": "1.21.2",
+ "version": "1.21.3",
"main": [
"mocha.js",
"mocha.css"
diff --git a/component.json b/component.json
index 73372733..6801c96a 100644
--- a/component.json
+++ b/component.json
@@ -1,6 +1,6 @@
{
"name": "mocha",
- "version": "1.21.2",
+ "version": "1.21.3",
"repo": "visionmedia/mocha",
"description": "simple, flexible, fun test framework",
"keywords": [
diff --git a/mocha.js b/mocha.js
index 972f7cd2..80ee52cb 100644
--- a/mocha.js
+++ b/mocha.js
@@ -1405,16 +1405,15 @@ var path = require('browser/path')
exports = module.exports = Mocha;
/**
- * To require UIs and reporters when running in node.
+ * To require local UIs and reporters when running in node.
*/
-if (process && typeof process.cwd === 'function') {
+if (typeof process !== 'undefined' && typeof process.cwd === 'function') {
var join = path.join
, cwd = process.cwd();
module.paths.push(cwd, join(cwd, 'node_modules'));
}
-
/**
* Expose internals.
*/
diff --git a/package.json b/package.json
index b971570f..51c0c4f1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mocha",
- "version": "1.21.2",
+ "version": "1.21.3",
"description": "simple, flexible, fun test framework",
"keywords": [
"mocha",