Closed lammertw closed 10 years ago
That's most definitely a bug, ngImprovedTesting shouldn't be opinionated about things like circular module dependencies. This Monday night I will look into it, most likely I will release a new version before Tuesday morning.
When testing a controller that's part of a module with a circular dependency the test throws an error.
I know that having a circular module dependency is bad and that's something I should fix on my side (I just discovered it because I was trying ng-improved-testing) but apparently angular allows it (as long as the services and controllers inside the modules don't depend on each other) so maybe that's something that ng-improved-testing could support as well.
Here is the error: PhantomJS 1.9.7 (Mac OS X) ngImprovedTesting mocked style AppController specification encountered a declaration exception FAILED