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) • 618 B
JavaScript
var HeaderComponent = require('./header');
var ngTest = require('@angular/core/testing');
describe('header component', function () {
beforeEach(ngTest.async(function () {
ngTest.TestBed.configureTestingModule({
declarations: [
HeaderComponent
]
});
ngTest.TestBed.compileComponents();
}));
it('should render \'Fountain Generator\'', function () {
var fixture = ngTest.TestBed.createComponent(HeaderComponent);
fixture.detectChanges();
var header = fixture.nativeElement;
expect(header.querySelector('a').textContent.trim()).toBe('Fountain Generator');
});
});