ashishgkwd/ngx-mat-daterange-picker

View on GitHub
src/app/modules/ngx-mat-drp/services/calendar-overlay.service.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { TestBed, inject } from '@angular/core/testing';

import { CalendarOverlayService } from './calendar-overlay.service';
import { Overlay } from '@angular/cdk/overlay';

class MockOverlay {}

describe('CalendarOverlayService', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      providers: [
        { provide: Overlay, useClass: MockOverlay },
        CalendarOverlayService
      ]
    });
  });

  it('should be created', inject(
    [CalendarOverlayService],
    (service: CalendarOverlayService) => {
      expect(service).toBeTruthy();
    }
  ));
});