angularjs - ReferenceError: module is not defined (angular js unit testing with Jasmine) -


i found lot of questions this, answers didn't work me.

i have small controller in angular js. works fine, , wanted start testing.

i downloaded jasmine standalone here. put controller in "src" folder, , js file in "specs", following instructions provided here. edited specrunner.html including files. didn't work.

after looking solutions "module not defined" error, included angular-mocs.js reference in html , in karma.conf.js file, making sure before tests. still doesn't work.

anyone knows can wrong?

ok, found problem. still had use npm install angular. stupid me...


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -