UNPKG

generator-capybara

Version:

Yeoman generator for front-end with Atomic Design + Stylus + Webpack + Rupture + Kouto-Swiss + Jeet + ES6 + BrowserSync.

20 lines (17 loc) 591 B
import angular from 'angular'; import 'angular-mocks'; import {main} from './main'; describe('main component', () => { beforeEach(() => { angular .module('app', ['app/main.html']) .component('app', main); angular.mock.module('app'); }); it('should render the header, title, techs and footer', angular.mock.inject(($rootScope, $compile) => { const element = $compile('<app>Loading...</app>')($rootScope); $rootScope.$digest(); expect(element.find('capy-header').length).toEqual(1); expect(element.find('capy-footer').length).toEqual(1); })); });