Skip to content

Instantly share code, notes, and snippets.

/actions-edit-controller.js Secret
Created Jan 27, 2016

Embed
What would you like to do?
angular.module('Actions')
.controller('ActionsEditController', function($modalInstance, action) {
var self = this;
self.action = action;
self.cancel = function() {
$modalInstance.close();
};
})
;
describe("ActionsEditController", function() {
var $controller;
beforeEach(module("Actions"));
beforeEach(inject(function(_$controller_) {
// $controller = _$controller_;
}));
describe(".cancel()", function() {
it("should close modal", function() {
// var controller = $controller('ActionsEditController', { $modalInstance: {}, action: {}});
// controller.cancel();
// expect(true).toBe(true);
});
});
});
angular.module('Actions', [
'kendo.directives'
])
.config(function($translatePartialLoaderProvider, $stateProvider) {
...
})
.run(function(TopbarService, UserService) {
...
})
;
$ npm test
...
Error: [$injector:modulerr] Failed to instantiate module Actions due to:
Error: [$injector:unpr] Unknown provider: $translatePartialLoaderProvider
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.