import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { DatepickerComponent } from './datepicker.component'; describe('DatepickerComponent', () => { let component: DatepickerComponent; let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ DatepickerComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(DatepickerComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });