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) • 566 B
text/typescript
import {TitleComponent} from './title';
import {TestBed, async} from '@angular/core/testing';
describe('title component', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
TitleComponent
]
});
TestBed.compileComponents();
}));
it('should render \'Allo, \'Allo!', () => {
const fixture = TestBed.createComponent(TitleComponent);
fixture.detectChanges();
const title = fixture.nativeElement;
expect(title.querySelector('h1').textContent.trim()).toBe('\'Allo, \'Allo!');
});
});