| 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) { | |
| ... | |
| }) | |
| ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment