import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { BackendService } from '../../../services/backend.service'; import { HttpClientModule } from '@angular/common/http'; import { SprintTableComponent } from './sprint-table.component'; describe('SprintTableComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ RouterTestingModule, HttpClientModule, ], declarations: [ SprintTableComponent, ], providers: [ BackendService, ] }).compileComponents(); })); it('should create the component', () => { const fixture = TestBed.createComponent(SprintTableComponent); const app = fixture.debugElement.componentInstance; expect(app).toBeTruthy(); }); });