blob: 7e3b2cc8c093ca36907cecf2336c0285dccde176 [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001/// <reference path="../../typings/index.d.ts"/>
2
3import {HelloComponent} from './hello';
4import {TestBed, async} from '@angular/core/testing';
5
6describe('hello component', () => {
7 beforeEach(async(() => {
8 TestBed.configureTestingModule({
9 declarations: [
10 HelloComponent
11 ]
12 });
13 TestBed.compileComponents();
14 }));
15
16 it('should render hello world', () => {
17 const fixture = TestBed.createComponent(HelloComponent);
18 fixture.detectChanges();
19 const hello = fixture.nativeElement;
20 expect(hello.querySelector('h1').textContent).toBe('Hello World!');
21 });
22});