Fix jasmine setup in Electron environment

Fix for issue  #964
This commit is contained in:
Stanislav Kupryakhin
2016-03-21 08:38:27 +06:00
parent 954a6a0091
commit c302545ba4

View File

@@ -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 {