UNPKG

generator-bitch

Version:

A simple generator (for Yeoman) to scaffolding web applications, just frontend stack

20 lines (15 loc) 493 B
let module = angular.mock.module let inject = angular.mock.inject describe('AboutController', function() { beforeEach(module('<%= applicationSlug %>')) let $controller beforeEach(inject(function(_$controller_){ $controller = _$controller_ })) describe('test $scope properties', function() { it('viewName should be "About"', function() { let AboutController = $controller('AboutController') expect(AboutController.viewName).to.be.equal('About') }) }) })