| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
| import { NO_ERRORS_SCHEMA } from '@angular/core'; |
| import { HttpClientModule } from '@angular/common/http'; |
| import { RouterTestingModule } from '@angular/router/testing'; |
| |
| import { ControllerDetailComponent } from './controller-detail.component'; |
| |
| describe('ControllerDetailComponent', () => { |
| let component: ControllerDetailComponent; |
| let fixture: ComponentFixture<ControllerDetailComponent>; |
| |
| beforeEach(async(() => { |
| TestBed.configureTestingModule({ |
| imports: [ |
| HttpClientModule, |
| RouterTestingModule |
| ], |
| declarations: [ ControllerDetailComponent ], |
| schemas: [ |
| /* avoid importing modules */ |
| NO_ERRORS_SCHEMA |
| ] |
| }) |
| .compileComponents(); |
| })); |
| |
| beforeEach(() => { |
| fixture = TestBed.createComponent(ControllerDetailComponent); |
| component = fixture.componentInstance; |
| fixture.detectChanges(); |
| }); |
| |
| it('should create', () => { |
| expect(component).toBeTruthy(); |
| }); |
| }); |