Error while running test (tutorial example): ReferenceError: window is not defined


#1

Hello! Can someone help me with error that appears while I am running tests:
meteor test --driver-package practicalmeteor:mocha

W20160629-11:57:06.751(3)? (STDERR)
W20160629-11:57:06.752(3)? (STDERR) C:\Users\Gladiussdv_PC\AppData\Local.meteor\packages\meteor-tool\1.3.4\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:280
W20160629-11:57:06.754(3)? (STDERR) throw(ex);
W20160629-11:57:06.755(3)? (STDERR) ^
W20160629-11:57:06.756(3)? (STDERR) ReferenceError: window is not defined
W20160629-11:57:06.757(3)? (STDERR) at Object. (G:\work\meteor\simple-todos\node_modules\angular-mocks\angular-mocks.js:3119:4)
W20160629-11:57:06.758(3)? (STDERR) at Module._compile (module.js:456:26)
W20160629-11:57:06.758(3)? (STDERR) at Object.Module._extensionsā€¦js (module.js:474:10)
W20160629-11:57:06.763(3)? (STDERR) at Module.load (module.js:356:32)
W20160629-11:57:06.764(3)? (STDERR) at Module.Mp.load (C:\Users\Gladiussdv_PC\AppData\Local.meteor\packages\babel-compiler\6.8.3\npm\node_modules\reify\node\runtime.js:16:23)
W20160629-11:57:06.765(3)? (STDERR) at Function.Module._load (module.js:312:12)
W20160629-11:57:06.766(3)? (STDERR) at Module.require (module.js:364:17)
W20160629-11:57:06.767(3)? (STDERR) at require (module.js:380:17)
W20160629-11:57:06.768(3)? (STDERR) at npmRequire (C:\Users\GLADIU~1\AppData\Local\Temp\meteor-test-run1oyv7gn.meteor\local\build\programs\server\npm-require.js:129:10)
W20160629-11:57:06.769(3)? (STDERR) at Module.Mp.useNode (packages/modules-runtime/modules-runtime.js:69:1)
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.


#2

I got the same error. Did I do something wrong ?