UNPKG

generator-angular-blueprint

Version:

Yeoman angular generator that allows you to override global templates with your own!

21 lines (13 loc) 468 B
'use strict'; describe('<%= type %>:<%= classedName %>Ctrl', function () { // load the controller's module beforeEach(angular.mock.module('<%= appName %>')); beforeEach(angular.mock.module('templates')); var <%= classedName %>; // Initialize the controller and a mock scope beforeEach(inject(function ($injector) { <%= classedName %> = $injector.get('$controller')('<%= classedName %>'); })); it('condition of test', function () { }); });