Closed 0x-r4bbit closed 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)
ROUTER
Another thing: The ngMidwayTester is highly coupled with $routeProvider right? There isn't a way to make such midway tests with UI-Router?
ngMidwayTester
$routeProvider
Ah, got it. https://github.com/yearofmoo-articles/AngularJS-Testing-Article/blob/master/app/scripts/lib/router.js
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?