Jasmine code:
describe('controllers', function() {
var $scope;
beforeEach(module('qorDash.widget.events'));
beforeEach(angular.mock.inject( function ($rootScope, $controller) {
$scope = $rootScope.$new();
$controller('EventsController', {$scope: $scope});
}));
it('hello', function () {
expect($scope.title).toEqual("Hello World!");
});
});
Error: [$injector:unpr] Unknown provider: dataLoaderProvider <- dataLoader <- EventsController;
Aucun commentaire:
Enregistrer un commentaire