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