From d7a9d1559a6d4466a8d6c020941084ec433cf9e5 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Tue, 12 Sep 2023 00:09:11 +0200 Subject: [PATCH] type fix --- .../app/ui/gallery/grid/grid.gallery.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/app/ui/gallery/grid/grid.gallery.component.spec.ts b/src/frontend/app/ui/gallery/grid/grid.gallery.component.spec.ts index e3428f54..a1a89c15 100644 --- a/src/frontend/app/ui/gallery/grid/grid.gallery.component.spec.ts +++ b/src/frontend/app/ui/gallery/grid/grid.gallery.component.spec.ts @@ -62,7 +62,7 @@ describe('GalleryGridComponent', () => { setGridPhotoQL: () => { // mock } - } as unknown; + } as never; fixture.detectChanges(); }); @@ -73,7 +73,7 @@ describe('GalleryGridComponent', () => { const phs: PhotoDTO[] = []; const gPhs: GridMedia[] = []; for (let i = 0; i < 10; ++i) { - const p = {name: i + '.jpg', directory: {name: 'd' + i, path: 'p' + i}} as unknown; + const p = {name: i + '.jpg', directory: {name: 'd' + i, path: 'p' + i}} as PhotoDTO; phs.push(p); gPhs.push(new GridMedia(p, 1, 1, i)); }