Open camposcristian opened 10 years ago
+1 same problem here
I've brought a simple modification that introduces a callback function that is called prior to the AngularJS boostrap. Hence I can load any dependencies this way. Might not be the optimal solution but it works, if someone needs the same:
https://www.npmjs.com/package/ng-midway-tester-jlr https://github.com/jimleroyer/ngMidwayTester
The actual changes: https://github.com/jimleroyer/ngMidwayTester/commit/ed176f6d7732c4eac18c0c3677af3941678bc6e4
I'm trying to figure out the best way to fill a dependency from a service midway test.
// Service
// Unit test
describe('UnitTest: dashboardService', function () {
});
// Midway test
describe('TestDriver: dashboardService', function () {
});
Everytime I run grunt test it fails. The error is
Error: Unknown provider: $userTokenProvider <- $userToken <- $dashboard
Any ideas?