UNPKG

coreui-angular-ex

Version:

CoreUI Components Library for Angular

19 lines (16 loc) 805 B
import { ChangeDetectorRef, ElementRef, Renderer2, ViewContainerRef } from '@angular/core'; import { IntersectionService, ListenersService } from '../services'; import { PopoverDirective } from './popover.directive'; describe('PopoverDirective', () => { let document: Document; let renderer: Renderer2; let hostElement: ElementRef; let viewContainerRef: ViewContainerRef; let changeDetectorRef: ChangeDetectorRef; it('should create an instance', () => { const listenersService = new ListenersService(renderer); const intersectionService = new IntersectionService(); const directive = new PopoverDirective(document, renderer, hostElement, viewContainerRef, listenersService, changeDetectorRef, intersectionService); expect(directive).toBeTruthy(); }); });