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