chore(frontend): add missing auth service mock (#226)

This commit is contained in:
Alex
2026-04-22 17:26:52 -04:00
committed by Zach Yale
parent da88da5207
commit 4da5f2be8b
+2
View File
@@ -15,6 +15,7 @@ import {LibraryService} from './features/book/service/library.service';
import {LibraryHealthService} from './features/book/service/library-health.service'; import {LibraryHealthService} from './features/book/service/library-health.service';
import {LibraryLoadingService} from './features/library-creator/library-loading.service'; import {LibraryLoadingService} from './features/library-creator/library-loading.service';
import {TranslocoTestingModule} from '@jsverse/transloco'; import {TranslocoTestingModule} from '@jsverse/transloco';
import {AuthService} from './shared/service/auth.service';
describe('AppComponent offline detection', () => { describe('AppComponent offline detection', () => {
let fixture: ComponentFixture<AppComponent>; let fixture: ComponentFixture<AppComponent>;
@@ -35,6 +36,7 @@ describe('AppComponent offline detection', () => {
{provide: LibraryService, useValue: {largeLibraryLoading: signal({isLoading: false, expectedCount: 0})}}, {provide: LibraryService, useValue: {largeLibraryLoading: signal({isLoading: false, expectedCount: 0})}},
{provide: LibraryHealthService, useValue: {initialize: vi.fn()}}, {provide: LibraryHealthService, useValue: {initialize: vi.fn()}},
{provide: LibraryLoadingService, useValue: {hide: vi.fn()}}, {provide: LibraryLoadingService, useValue: {hide: vi.fn()}},
{provide: AuthService, useValue: {token: signal(null)}},
] ]
}); });