AngularJS with Karma, Node.js and Jasmine

1

Testing AngularJs with Karma, Node.js and Jasmine I get this error running scripts / test.bat on console.

Chrome 48.0.2564 (Windows 7 0.0.0) ERROR
Uncaught TypeError: Cannot read property 'module' of undefined

What does it mean?

I'm using Angular Seed.

    
asked by Alexis Rengifo 04.03.2016 в 03:39
source

1 answer

1

Somewhere in your code there is something like

expresion.module = algo

if expresion is worth undefined the error is shown. To find it you can press the debug button (in Chrome) with the debugger open (F12) and marked so that it stops in the exceptions.

Another way to find the error is to search for ".module" inside the code

    
answered by 23.04.2016 в 01:51