1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-04-13 11:50:33 +02:00

adding missing mock service

This commit is contained in:
Patrik J. Braun 2023-09-11 16:48:48 +02:00
parent 02daa25bc1
commit b97d62d900

@ -11,6 +11,7 @@ import {of} from 'rxjs';
import {HttpClientTestingModule} from '@angular/common/http/testing';
import {PhotoDTO} from '../../../../../common/entities/PhotoDTO';
import {GridMedia} from './GridMedia';
import {GalleryNavigatorService} from '../navigator/navigator.service';
class MockQueryService {
}
@ -24,6 +25,9 @@ class MockContentService {
class MockGallerySortingService {
}
class MockGalleryNavigatorService {
}
describe('GalleryGridComponent', () => {
let component: GalleryGridComponent;
let fixture: ComponentFixture<GalleryGridComponent>;
@ -38,6 +42,7 @@ describe('GalleryGridComponent', () => {
{provide: QueryService, useClass: MockQueryService},
{provide: OverlayService, useClass: MockOverlayService},
{provide: GallerySortingService, useClass: MockGallerySortingService},
{provide: GalleryNavigatorService, useClass: MockGalleryNavigatorService},
{provide: OverlayService, useClass: MockOverlayService},
{
provide: ActivatedRoute,