From a177f69c59ae54836ceb1aa3fe2b3322cd184603 Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 17 Mar 2023 22:00:14 +0100 Subject: [PATCH] test: add missing imports --- src/app/settings/settings.component.spec.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/settings/settings.component.spec.ts b/src/app/settings/settings.component.spec.ts index aad452803..5e6af8bb8 100644 --- a/src/app/settings/settings.component.spec.ts +++ b/src/app/settings/settings.component.spec.ts @@ -23,7 +23,13 @@ import { TranslatePipe, TranslateService, } from '@ngx-translate/core'; -import { MockComponent, MockModule, MockPipe, MockProvider } from 'ng-mocks'; +import { + MockComponent, + MockModule, + MockPipe, + MockProvider, + MockProviders, +} from 'ng-mocks'; import { of } from 'rxjs'; import { EPG_FORCE_FETCH } from '../../../shared/ipc-commands'; import { DataService } from '../services/data.service'; @@ -35,6 +41,9 @@ import { SettingsComponent } from './settings.component'; import { VideoPlayer } from './settings.interface'; import { Theme } from './theme.enum'; +import { NgxIndexedDBService } from 'ngx-indexed-db'; +import { PlaylistsService } from '../services/playlists.service'; + class MatSnackBarStub { open(): void {} } @@ -80,6 +89,7 @@ describe('SettingsComponent', () => { }, StorageMap, provideMockStore(), + MockProviders(NgxIndexedDBService, PlaylistsService), ], imports: [ HttpClientTestingModule,