From 2ad86bad9c4b24ce9ed4bea91a1f62bba22d6151 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Thu, 24 Apr 2014 09:46:18 -0300 Subject: [PATCH] compare the type of window in order to avoid nodejs conflicts with test --- test/mocha.conf.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/mocha.conf.js b/test/mocha.conf.js index fd1766e7c..597f2ea60 100644 --- a/test/mocha.conf.js +++ b/test/mocha.conf.js @@ -1 +1,3 @@ -window.mocha.setup({ timeout: 5000 }); +if (typeof window != 'undefined') { + window.mocha.setup({ timeout: 5000 }); +}