Skip to content

Commit 902ad54

Browse files
committed
fix(test): add missing declarations
Signed-off-by: Stefano Cappa <stefano.cappa.ks89@gmail.com>
1 parent 5472e7b commit 902ad54

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

projects/ks89/angular-modal-gallery/src/lib/components/modal-gallery/attach-to-overlay.service.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import { inject, TestBed, waitForAsync } from '@angular/core/testing';
22
import { AttachToOverlayService } from './attach-to-overlay.service';
33
import { ModalGalleryService } from './modal-gallery.service';
4-
import { OverlayModule, OverlayRef } from '@angular/cdk/overlay';
4+
import { OverlayModule, OverlayRef } from "@angular/cdk/overlay";
55
import { Image } from '../../model/image.class';
66
import { ModalGalleryRef } from './modal-gallery-ref';
7+
import { ModalGalleryComponent } from './modal-gallery.component';
8+
import { UpperButtonsComponent } from '../upper-buttons/upper-buttons.component';
9+
import { CurrentImageComponent } from '../current-image/current-image.component';
10+
import { DotsComponent } from '../dots/dots.component';
11+
import { PreviewsComponent } from '../previews/previews.component';
712

813
const IMAGES: Image[] = [
914
new Image(0, {
@@ -55,6 +60,9 @@ describe('AttachToOverlayService', () => {
5560
beforeEach(waitForAsync(() => {
5661
TestBed.configureTestingModule({
5762
imports: [OverlayModule],
63+
declarations: [ModalGalleryComponent, UpperButtonsComponent,
64+
CurrentImageComponent, DotsComponent, PreviewsComponent
65+
],
5866
providers: [
5967
AttachToOverlayService,
6068
{

0 commit comments

Comments
 (0)