Wednesday, October 30, 2013

Unit testing state transitions with ui-router and karma/jasmine

Testing ui-router state transitions with karma/jasmine is straightforward. The unit test: And karma configuration: Note the html preprocessor and inclusion of the views in the "files" array.