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

21 lines (18 loc) 588 B
var HelloComponent = require('./hello'); var ngTest = require('@angular/core/testing'); describe('hello component', function () { beforeEach(ngTest.async(function () { ngTest.TestBed.configureTestingModule({ declarations: [ HelloComponent ] }); ngTest.TestBed.compileComponents(); })); it('should render hello world', function () { var fixture = ngTest.TestBed.createComponent(HelloComponent); fixture.detectChanges(); var hello = fixture.nativeElement; expect(hello.querySelector('h1').textContent).toBe('Hello World!'); }); });