UNPKG

generator-booang

Version:

Latest Angular and Boostrap generator. Based on the MEAN stack generator for Yeoman. Angular 1.2.0-rc.2 and Bootstrap 3

23 lines (17 loc) 522 B
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('<%= _.camelize(appname) %>')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controller('MainCtrl', { $scope: scope }); })); it('should attach a list of awesomeThings to the scope', function () { expect(scope.awesomeThings.length).toBe(3); }); });