import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { TimepickerComponent } from './timepicker.component'; describe('TimepickerComponent', () => { let component: TimepickerComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ imports: [ FormsModule, NgbModule.forRoot() ], declarations: [ TimepickerComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(TimepickerComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });