UNPKG

generator-fountain-angular2

Version:

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

15 lines (12 loc) 437 B
import {<%- className %>} from './<%- name %>'; import {TestBed, async} from '@angular/core/testing'; describe('<%- componentName %> component', () => { beforeEach(async(() => { TestBed.configureTestingModule({declarations: [<%- componentName %>]}); TestBed.compileComponents(); })); it('should render...', () => { const fixture = TestBed.createComponent(<%- componentName %>); fixture.detectChanges(); }); });