yearofmoo/ngMidwayTester

AngularJS 1.2.5 and the latest MidwayTester do not work: Can not instantiate ngMidwayTester instance

Opened this issue · 0 comments

I am using AngularJS 1.2.5 and the latest MidwayTester and got an error. Basically, it can NOT instantiate a MidwayTester instance.

minErr/<@C:/a_Work/NK/vendor/angularjs/angular.js:78
loadModules/<@C:/a_Work/NK/vendor/angularjs/angular.js:3624
forEach@C:/a_Work/NK/vendor/angularjs/angular.js:300
loadModules@C:/a_Work/NK/vendor/angularjs/angular.js:3589
createInjector@C:/a_Work/NK/vendor/angularjs/angular.js:3529
bootstrap/doBootstrap@C:/a_Work/NK/vendor/angularjs/angular.js:1294
bootstrap@C:/a_Work/NK/vendor/angularjs/angular.js:1309
ngMidwayTester@C:/a_Work/NK/vendor/ngMidwayTester/src/ngMidwayTester.js:78
@C:/a_Work/NK/test/midway/midway.spec.js:6

And here is the line 6 in midway.spec.js: tester = ngMidwayTester(appName);
Line 78 of ngMidwayTester is: var $injector = angular.bootstrap($rootElement, ['ng','ngMidway',moduleName]);

And line 78 of angular.js is : return new Error(message);