You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running "connect:test" (connect) task
Started connect web server on 127.0.0.1:9000.
Running "karma:unit" (karma) task
INFO [karma]: Karma v0.10.10 server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 48.0.2564 (Windows 7)]: Connected on socket KAbyQhw16zaH8rb4JFpZ
Chrome 48.0.2564 (Windows 7) Controller: MainCtrl should be defined FAILED
Error: [$injector:modulerr] Failed to instantiate module ngMock due to:
Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider http://errors.angularjs.org/1.5.0/$injector/unpr?p0=%24%24asyncCallbackP
rovider
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:68:12
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4397:19
at Object.getService [as get](D:/test/malhar-dashboard-webapp/app/b
ower_components/angular/angular.js:4550:39)
at Object.decorator (D:/test/malhar-dashboard-webapp/app/bower_compo
nents/angular/angular.js:4472:41)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular-mock
s/angular-mocks.js:1947:12
at Object.invoke (D:/test/malhar-dashboard-webapp/app/bower_componen
ts/angular/angular.js:4604:19)
at runInvokeQueue (D:/test/malhar-dashboard-webapp/app/bower_compone
nts/angular/angular.js:4497:35)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4506:11
at forEach (D:/test/malhar-dashboard-webapp/app/bower_components/ang
ular/angular.js:321:20)
at loadModules (D:/test/malhar-dashboard-webapp/app/bower_components
/angular/angular.js:4487:5) http://errors.angularjs.org/1.5.0/$injector/modulerr?p0=ngMock&p1=Error%
3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20%24%24asyncCallbackProvi
der%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.0%2F%24injector%2Funpr%3Fp0%3D%252
4%2524asyncCallbackProvider%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fb
ase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3F1455466129714%3A68%3A12%0A
%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2
Fangular%2Fangular.js%3F1455466129714%3A4397%3A19%0A%20%20%20%20at%20Object.getS
ervice%20%5Bas%20get%5D%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_co
mponents%2Fangular%2Fangular.js%3F1455466129714%3A4550%3A39)%0A%20%20%20%20at%20
Object.decorator%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_component
s%2Fangular%2Fangular.js%3F1455466129714%3A4472%3A41)%0A%20%20%20%20at%20http%3A
%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular-mocks%2Fangular
-mocks.js%3F1455465027396%3A1947%3A12%0A%20%20%20%20at%20Object.invoke%20(http%3
A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3
F1455466129714%3A4604%3A19)%0A%20%20%20%20at%20runInvokeQueue%20(http%3A%2F%2Flo
calhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3F14554661
29714%3A4497%3A35)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp
%2Fbower_components%2Fangular%2Fangular.js%3F1455466129714%3A4506%3A11%0A%20%20%
20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_componen
ts%2Fangular%2Fangular.js%3F1455466129714%3A321%3A20)%0A%20%20%20%20at%20loadMod
ules%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%
2Fangular.js%3F1455466129714%3A4487%3A5)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:68:12
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4526:15
at forEach (D:/test/malhar-dashboard-webapp/app/bower_components/ang
ular/angular.js:321:20)
at loadModules (D:/test/malhar-dashboard-webapp/app/bower_components
/angular/angular.js:4487:5)
at Object.createInjector [as injector](D:/test/malhar-dashboard-web
app/app/bower_components/angular/angular.js:4409:19)
at workFn (D:/test/malhar-dashboard-webapp/app/bower_components/angu
lar-mocks/angular-mocks.js:2464:52)
Expected undefined to be defined.
Error: Expected undefined to be defined.
at null. (D:/test/malhar-dashboard-webapp/test/spec/contr
ollers/main.js:20:22)
Chrome 48.0.2564 (Windows 7): Executed 1 of 1 (1 FAILED) ERROR (1.004 secs / 0.1
secs)
Warning: Task "karma:unit" failed. Use --force to continue.
Here is the code of my main.js file
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('app'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $controller('MainCtrl', {
$scope: scope
});
}));
it('should be defined', function () {
expect(MainCtrl).toBeDefined();
});
});
Aborted due to warnings.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
Hello everybody,
When using grunt command I get the following error:-
D:\test\malhar-dashboard-webapp>grunt
Running "jshint:all" (jshint) task
Running "clean:server" (clean) task
Cleaning .tmp...OK
Running "concurrent:test" (concurrent) task
Running "coffee:dist" (coffee) task
Running "coffee:test" (coffee) task
Done, without errors.
Running "copy:styles" (copy) task
Copied 1 files
Done, without errors.
Running "autoprefixer:dist" (autoprefixer) task
File ".tmp/styles/main.css" created.
Running "connect:test" (connect) task
Started connect web server on 127.0.0.1:9000.
Running "karma:unit" (karma) task
INFO [karma]: Karma v0.10.10 server started at http://localhost:8080/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 48.0.2564 (Windows 7)]: Connected on socket KAbyQhw16zaH8rb4JFpZ
Chrome 48.0.2564 (Windows 7) Controller: MainCtrl should be defined FAILED
Error: [$injector:modulerr] Failed to instantiate module ngMock due to:
Error: [$injector:unpr] Unknown provider: $$asyncCallbackProvider
http://errors.angularjs.org/1.5.0/$injector/unpr?p0=%24%24asyncCallbackP
rovider
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:68:12
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4397:19
at Object.getService [as get](D:/test/malhar-dashboard-webapp/app/b
ower_components/angular/angular.js:4550:39)
at Object.decorator (D:/test/malhar-dashboard-webapp/app/bower_compo
nents/angular/angular.js:4472:41)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular-mock
s/angular-mocks.js:1947:12
at Object.invoke (D:/test/malhar-dashboard-webapp/app/bower_componen
ts/angular/angular.js:4604:19)
at runInvokeQueue (D:/test/malhar-dashboard-webapp/app/bower_compone
nts/angular/angular.js:4497:35)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4506:11
at forEach (D:/test/malhar-dashboard-webapp/app/bower_components/ang
ular/angular.js:321:20)
at loadModules (D:/test/malhar-dashboard-webapp/app/bower_components
/angular/angular.js:4487:5)
http://errors.angularjs.org/1.5.0/$injector/modulerr?p0=ngMock&p1=Error%
3A%20%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20%24%24asyncCallbackProvi
der%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.5.0%2F%24injector%2Funpr%3Fp0%3D%252
4%2524asyncCallbackProvider%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fb
ase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3F1455466129714%3A68%3A12%0A
%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2
Fangular%2Fangular.js%3F1455466129714%3A4397%3A19%0A%20%20%20%20at%20Object.getS
ervice%20%5Bas%20get%5D%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_co
mponents%2Fangular%2Fangular.js%3F1455466129714%3A4550%3A39)%0A%20%20%20%20at%20
Object.decorator%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_component
s%2Fangular%2Fangular.js%3F1455466129714%3A4472%3A41)%0A%20%20%20%20at%20http%3A
%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular-mocks%2Fangular
-mocks.js%3F1455465027396%3A1947%3A12%0A%20%20%20%20at%20Object.invoke%20(http%3
A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3
F1455466129714%3A4604%3A19)%0A%20%20%20%20at%20runInvokeQueue%20(http%3A%2F%2Flo
calhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%2Fangular.js%3F14554661
29714%3A4497%3A35)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp
%2Fbower_components%2Fangular%2Fangular.js%3F1455466129714%3A4506%3A11%0A%20%20%
20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_componen
ts%2Fangular%2Fangular.js%3F1455466129714%3A321%3A20)%0A%20%20%20%20at%20loadMod
ules%20(http%3A%2F%2Flocalhost%3A8080%2Fbase%2Fapp%2Fbower_components%2Fangular%
2Fangular.js%3F1455466129714%3A4487%3A5)
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:68:12
at D:/test/malhar-dashboard-webapp/app/bower_components/angular/angu
lar.js:4526:15
at forEach (D:/test/malhar-dashboard-webapp/app/bower_components/ang
ular/angular.js:321:20)
at loadModules (D:/test/malhar-dashboard-webapp/app/bower_components
/angular/angular.js:4487:5)
at Object.createInjector [as injector](D:/test/malhar-dashboard-web
app/app/bower_components/angular/angular.js:4409:19)
at workFn (D:/test/malhar-dashboard-webapp/app/bower_components/angu
lar-mocks/angular-mocks.js:2464:52)
Expected undefined to be defined.
Error: Expected undefined to be defined.
at null. (D:/test/malhar-dashboard-webapp/test/spec/contr
ollers/main.js:20:22)
Chrome 48.0.2564 (Windows 7): Executed 1 of 1 (1 FAILED) ERROR (1.004 secs / 0.1
secs)
Warning: Task "karma:unit" failed. Use --force to continue.
Here is the code of my main.js file
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('app'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $controller('MainCtrl', {
$scope: scope
});
}));
it('should be defined', function () {
expect(MainCtrl).toBeDefined();
});
});
Aborted due to warnings.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: