Answer the question
In order to leave comments, you need to log in
How to test sub modules using karma and mocks?
I have app module and app.chat submodule
angular
.module('app', [
'app.chat',
]);
beforeEach(function () {
module('app')
});
beforeEach(inject(function($controller) {
vm = $controller('IndexController', {$scope: {}});
}));
beforeEach(function () {
module('app.chat')
});
var vm;
beforeEach(inject(function($controller) {
vm = $controller('ChatController', {$scope: {}});
}));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question