Reputation: 1133
Having trouble in testing angular controller. Im using angular with require js and using karma for testing. Is there any example and github sample.
Upvotes: 3
Views: 3026
Reputation: 3952
Here is a project I created with unit test for RequireJS and AngularJS:
https://github.com/marcoslin/angularAMD
To run the test, do the following:
npm install
grunt test
Upvotes: 2