import { Component, ViewChild } from '@angular/core';
import { BsDaterangepickerInlineDirective, BsDaterangepickerInlineConfig, BsDatepickerModule } from '.';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@Component({
selector: 'test-cmp',
template: ``
})
class TestComponent {
@ViewChild(BsDaterangepickerInlineDirective, { static: false }) daterangepicker: BsDaterangepickerInlineDirective;
bsConfig: Partial = {
customTodayClass: 'custom-today-class'
};
}
type TestFixture = ComponentFixture;
describe('daterangepicker inline:', () => {
let fixture: TestFixture;
beforeEach(
async(() => TestBed.configureTestingModule({
declarations: [TestComponent],
imports: [
BsDatepickerModule.forRoot(),
BrowserAnimationsModule
]
}).compileComponents()
));
beforeEach(() => {
fixture = TestBed.createComponent(TestComponent);
fixture.detectChanges();
});
});