1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { DashboardComponent } from './dashboard.component';
4 import { HeroService } from '../hero.service';
5 import { of } from 'rxjs';
7 describe('DashboardComponent', () => {
8 let component: DashboardComponent;
9 let fixture: ComponentFixture<DashboardComponent>;
11 beforeEach(async(() => {
12 TestBed.configureTestingModule({
13 declarations: [ DashboardComponent ],
15 { provide: HeroService, useValue: { getHeroes: () => of([])}}
22 fixture = TestBed.createComponent(DashboardComponent);
23 component = fixture.componentInstance;
24 fixture.detectChanges();
27 it('should create', () => {
28 expect(component).toBeTruthy();