UNPKG

ng-mat-daterange-picker

Version:

[![CircleCI](https://circleci.com/gh/ashishgkwd/ngx-mat-daterange-picker.svg?style=shield)](https://circleci.com/gh/ashishgkwd/ngx-mat-daterange-picker) [![Maintainability](https://api.codeclimate.com/v1/badges/2b0d09a866f6d2ed139c/maintainability)](https

26 lines (20 loc) 745 B
import { TestBed, inject } from '@angular/core/testing'; import { ConfigStoreService } from './config-store.service'; describe('ConfigStoreService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ConfigStoreService] }); }); it('should be created', inject([ConfigStoreService], (service: ConfigStoreService) => { expect(service).toBeTruthy(); })); it('should setup default options', inject([ConfigStoreService], (service: ConfigStoreService) => { service.ngxDrpOptions = { presets:[], format: 'mediumDate', range: {fromDate:null, toDate: null} }; expect(Object.keys(service.ngxDrpOptions)).toContain('excludeWeekends'); })); });