UNPKG

angular-nevera-generator

Version:

Yeoman AngularJS scaffold a webapp with Angular 1 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma

16 lines (15 loc) 538 B
describe('header component', function () { beforeEach(module('app', function ($provide) { $provide.factory('fountainHeader', function () { return { templateUrl: 'app/header.html' }; }); })); it('should render \'Fountain Generator\'', angular.mock.inject(function ($rootScope, $compile) { var element = $compile('<fountain-header></fountain-header>')($rootScope); $rootScope.$digest(); var header = element.find('a'); expect(header.html().trim()).toEqual('Fountain Generator'); })); });