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

31 lines (30 loc) 1.07 kB
describe('main component', function () { beforeEach(module('app', function ($provide) { $provide.factory('fountainHeaderDirective', function () { return {}; }); })); beforeEach(module('app', function ($provide) { $provide.factory('fountainTitleDirective', function () { return {}; }); })); beforeEach(module('app', function ($provide) { $provide.factory('fountainTechsDirective', function () { return {}; }); })); beforeEach(module('app', function ($provide) { $provide.factory('fountainFooterDirective', function () { return {}; }); })); it('should render the header, title, techs and footer', angular.mock.inject(function ($rootScope, $compile) { var element = $compile('<app>Loading...</app>')($rootScope); $rootScope.$digest(); expect(element.find('fountain-header').length).toEqual(1); expect(element.find('fountain-title').length).toEqual(1); expect(element.find('fountain-techs').length).toEqual(1); expect(element.find('fountain-footer').length).toEqual(1); })); });