generator-mycroftx-component
Version:
Yeoman generator and modified generator-ng-component
19 lines (14 loc) • 557 B
text/coffeescript
'use strict'
describe 'Controller: <%= classedName %>Ctrl', ->
# load the controller's module
beforeEach module '<%= scriptAppName %>'
<%= classedName %>Ctrl = undefined
scope = undefined
# Initialize the controller and a mock scope
beforeEach inject ($controller, $rootScope) ->
scope = $rootScope.$new()
<%= classedName %>Ctrl = $controller '<%= classedName %>Ctrl',
$scope: scope
it 'should ...', -><% if (hasFilter('jasmine')) { %>
expect(1).toEqual 1<% } if (hasFilter('mocha')) { %>
expect(1).to.equal 1<% } %>