From 902ad54577410dba692ed3513757528149b11e3d Mon Sep 17 00:00:00 2001 From: Stefano Cappa Date: Tue, 12 Sep 2023 20:38:17 +0200 Subject: [PATCH] fix(test): add missing declarations Signed-off-by: Stefano Cappa --- .../modal-gallery/attach-to-overlay.service.spec.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/attach-to-overlay.service.spec.ts b/projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/attach-to-overlay.service.spec.ts index 9b4e04ff..f69c025d 100644 --- a/projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/attach-to-overlay.service.spec.ts +++ b/projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/attach-to-overlay.service.spec.ts @@ -1,9 +1,14 @@ import { inject, TestBed, waitForAsync } from '@angular/core/testing'; import { AttachToOverlayService } from './attach-to-overlay.service'; import { ModalGalleryService } from './modal-gallery.service'; -import { OverlayModule, OverlayRef } from '@angular/cdk/overlay'; +import { OverlayModule, OverlayRef } from "@angular/cdk/overlay"; import { Image } from '../../model/image.class'; import { ModalGalleryRef } from './modal-gallery-ref'; +import { ModalGalleryComponent } from './modal-gallery.component'; +import { UpperButtonsComponent } from '../upper-buttons/upper-buttons.component'; +import { CurrentImageComponent } from '../current-image/current-image.component'; +import { DotsComponent } from '../dots/dots.component'; +import { PreviewsComponent } from '../previews/previews.component'; const IMAGES: Image[] = [ new Image(0, { @@ -55,6 +60,9 @@ describe('AttachToOverlayService', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [OverlayModule], + declarations: [ModalGalleryComponent, UpperButtonsComponent, + CurrentImageComponent, DotsComponent, PreviewsComponent + ], providers: [ AttachToOverlayService, {