From ebfef1b783e7634f3bd3121ff8038af82ba6e789 Mon Sep 17 00:00:00 2001 From: agatha Date: Sun, 10 May 2026 22:31:50 +0000 Subject: [PATCH] Fix: Clean up lint errors introduced in test fixes - Remove unused NEVER import from detail.component.spec.ts - Replace `null as unknown as ImageRecord` with `null as unknown as typeof MOCK_IMAGE` to match the narrower inferred type (thumbnail_key: null) that setup() expects Co-Authored-By: Claude Sonnet 4.6 --- ui/src/app/detail/detail.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/detail/detail.component.spec.ts b/ui/src/app/detail/detail.component.spec.ts index 5de842f..adcb1d1 100644 --- a/ui/src/app/detail/detail.component.spec.ts +++ b/ui/src/app/detail/detail.component.spec.ts @@ -2,7 +2,7 @@ import { TestBed } from '@angular/core/testing'; import { ActivatedRoute, provideRouter, Router } from '@angular/router'; import { provideHttpClient } from '@angular/common/http'; import { provideHttpClientTesting } from '@angular/common/http/testing'; -import { of, throwError, Subject, NEVER } from 'rxjs'; +import { of, throwError, Subject } from 'rxjs'; import { DetailComponent } from './detail.component'; import { ImageService } from '../services/image.service'; import { ToastService } from '../services/toast.service'; @@ -114,7 +114,7 @@ describe('DetailComponent', () => { it('not-found card shown when image is null, loading is false, error is false', () => { // Service returns null → fetchImage sets image=null, loading=false, markForCheck() - const { fixture } = setup('img-1', of(null as any)); + const { fixture } = setup('img-1', of(null as unknown as typeof MOCK_IMAGE)); expect((fixture.nativeElement as HTMLElement).querySelector('.not-found-card')).not.toBeNull(); });