compare the type of window in order to avoid nodejs conflicts with test

This commit is contained in:
Mario Colque 2014-04-24 09:46:18 -03:00
parent 9bd20bb6e7
commit 2ad86bad9c
1 changed files with 3 additions and 1 deletions

View File

@ -1 +1,3 @@
window.mocha.setup({ timeout: 5000 });
if (typeof window != 'undefined') {
window.mocha.setup({ timeout: 5000 });
}