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.

1
  • How are you using requirejs? Are you loading in all your modules with it, or just some third party dependencies? If you post a jsfiddle it will make it easier to answer your question. Commented Oct 5, 2013 at 7:38

1 Answer 1

2

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
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks @marcoseu. I am also a great fan of reuquirejs with angularjs like you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.