yearofmoo-articles / AngularJS-Testing-Article

A testing repository for AngularJS
263 stars 111 forks source link

Where does ROUTER come from #6

Closed 0x-r4bbit closed 11 years ago

0x-r4bbit commented 11 years ago

Yo @matsko I'm currently digging into midway testing. While reading your article on yearofmoo, there a still things pretty unclear.

In your examples you're using a ROUTER constant. I have absolutely no idea where it comes from. (https://github.com/yearofmoo-articles/AngularJS-Testing-Article/blob/master/test/midway/routesSpec.js#L27)

Another thing: The ngMidwayTester is highly coupled with $routeProvider right? There isn't a way to make such midway tests with UI-Router?

0x-r4bbit commented 11 years ago

Ah, got it. https://github.com/yearofmoo-articles/AngularJS-Testing-Article/blob/master/app/scripts/lib/router.js