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) 477 B
var <%- className %> = require('./<%- name %>'); var ngTest = require('@angular/core/testing'); describe('<%- componentName %> component', function () { beforeEach(ngTest.async(function () { ngTest.TestBed.configureTestingModule({declarations: [<%- componentName %>]}); ngTest.TestBed.compileComponents(); })); it('should render...', function () { const fixture = ngTest.TestBed.createComponent(<%- componentName %>); fixture.detectChanges(); }); });