3

Having trouble in testing angular controller. Im using angular with require js and using karma for testing. Is there any example and github sample.

4

1 回答 1

2

这是我使用 RequireJS 和 AngularJS 的单元测试创​​建的项目:

https://github.com/marcoslin/angularAMD

要运行测试,请执行以下操作:

npm install
grunt test
于 2013-10-09T21:39:18.060 回答