From 4da5f2be8b0c5ade4c2014c622a7b287a64debba Mon Sep 17 00:00:00 2001 From: Alex <25013571+alexhb1@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:38:35 +0000 Subject: [PATCH] chore(frontend): add missing auth service mock (#226) --- frontend/src/app/app.component.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/app.component.spec.ts b/frontend/src/app/app.component.spec.ts index c9482fcad..c7cba6658 100644 --- a/frontend/src/app/app.component.spec.ts +++ b/frontend/src/app/app.component.spec.ts @@ -15,6 +15,7 @@ import {LibraryService} from './features/book/service/library.service'; import {LibraryHealthService} from './features/book/service/library-health.service'; import {LibraryLoadingService} from './features/library-creator/library-loading.service'; import {TranslocoTestingModule} from '@jsverse/transloco'; +import {AuthService} from './shared/service/auth.service'; describe('AppComponent offline detection', () => { let fixture: ComponentFixture; @@ -35,6 +36,7 @@ describe('AppComponent offline detection', () => { {provide: LibraryService, useValue: {largeLibraryLoading: signal({isLoading: false, expectedCount: 0})}}, {provide: LibraryHealthService, useValue: {initialize: vi.fn()}}, {provide: LibraryLoadingService, useValue: {hide: vi.fn()}}, + {provide: AuthService, useValue: {token: signal(null)}}, ] });