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) 579 B
describe('footer component', () => { beforeEach(angular.mock.module('app', ($provide: ng.auto.IProvideService) => { $provide.factory('fountainFooter', () => { return { templateUrl: 'app/footer.html' }; }); })); it('should render \'FountainJS team\'', inject(($rootScope: ng.IRootScopeService, $compile: ng.ICompileService) => { const element = $compile('<fountain-footer></fountain-footer>')($rootScope); $rootScope.$digest(); const footer = element.find('a'); expect(footer.html().trim()).toEqual('FountainJS team'); })); });