From c302545ba4bfea2c3325dcac798d59cb6cb8f538 Mon Sep 17 00:00:00 2001 From: Stanislav Kupryakhin Date: Mon, 21 Mar 2016 08:38:27 +0600 Subject: [PATCH] Fix jasmine setup in Electron environment Fix for issue #964 --- lib/jasmine-core/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 646bbac3..3c2ae9d2 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -23,7 +23,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. var getJasmineRequireObj = (function (jasmineGlobal) { var jasmineRequire; - if (typeof module !== 'undefined' && module.exports) { + if (typeof module !== 'undefined' && module.exports && typeof exports !== 'undefined') { if (typeof global !== 'undefined') { jasmineGlobal = global; } else {