generator-mycroftx-component
Version:
Yeoman generator and modified generator-ng-component
23 lines (17 loc) • 606 B
JavaScript
describe('Controller: <%= classedName %>Ctrl', function () {
// load the controller's module
beforeEach(module('<%= scriptAppName %>'));
var <%= classedName %>Ctrl, scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
<%= classedName %>Ctrl = $controller('<%= classedName %>Ctrl', {
$scope: scope
});
}));
it('should ...', function () {<% if (hasFilter('jasmine')) { %>
expect(1).toEqual(1);<% } if (hasFilter('mocha')) { %>
expect(1).to.equal(1);<% } %>
});
});
;