You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-13 01:20:23 +02:00
adding missing mock service
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user