+ expect(app.title).toEqual('Tour of Heroes');
+ });
+
+ it(`should render the title 'Tour of Heroes'`, () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ fixture.detectChanges();
+ const compiled = fixture.debugElement.nativeElement;
+ expect(compiled.querySelector('h1').textContent).toContain('Tour of Heroes');