From 00ed5a706dbc5838f14418654a382c29a9213fbf Mon Sep 17 00:00:00 2001 From: Jake Luer Date: Tue, 28 Feb 2012 12:52:21 -0500 Subject: [PATCH] fix for `process` not available in browser when used via browserify. Closes #28 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2c9e22377..63d670dc0 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,3 @@ -module.exports = process.env.CHAI_COV +module.exports = (process && process.env && process.env.CHAI_COV) ? require('./lib-cov/chai') : require('./lib/chai');