UNPKG

generator-xd-angular

Version:

AngularJS yeoman-generator using Angular-ui-router, sass-bootstrap, compass, mocha, gulp, font-awesome, ngdocs

16 lines (12 loc) 444 B
/*globals inject, beforeEach, describe, it, expect, module*/ describe('<%= moduleName %>', function () { beforeEach( module('<%= moduleName %>')); var scope, ctrl; beforeEach( inject( function ($rootScope, $controller){ scope = $rootScope.$new(); ctrl = $controller('<%= ctrlInstance %> as vm', { $scope: scope }); })); it('should have scope', function () { expect(scope.vm.name).to.equal('<%= ctrlName %>'); }); });