blob: 7e3b2cc8c093ca36907cecf2336c0285dccde176 [file] [log] [blame]
/// <reference path="../../typings/index.d.ts"/>
import {HelloComponent} from './hello';
import {TestBed, async} from '@angular/core/testing';
describe('hello component', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
HelloComponent
]
});
TestBed.compileComponents();
}));
it('should render hello world', () => {
const fixture = TestBed.createComponent(HelloComponent);
fixture.detectChanges();
const hello = fixture.nativeElement;
expect(hello.querySelector('h1').textContent).toBe('Hello World!');
});
});