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:
parent
02daa25bc1
commit
b97d62d900
@ -11,6 +11,7 @@ import {of} from 'rxjs';
|
|||||||
import {HttpClientTestingModule} from '@angular/common/http/testing';
|
import {HttpClientTestingModule} from '@angular/common/http/testing';
|
||||||
import {PhotoDTO} from '../../../../../common/entities/PhotoDTO';
|
import {PhotoDTO} from '../../../../../common/entities/PhotoDTO';
|
||||||
import {GridMedia} from './GridMedia';
|
import {GridMedia} from './GridMedia';
|
||||||
|
import {GalleryNavigatorService} from '../navigator/navigator.service';
|
||||||
|
|
||||||
class MockQueryService {
|
class MockQueryService {
|
||||||
}
|
}
|
||||||
@ -24,6 +25,9 @@ class MockContentService {
|
|||||||
class MockGallerySortingService {
|
class MockGallerySortingService {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class MockGalleryNavigatorService {
|
||||||
|
}
|
||||||
|
|
||||||
describe('GalleryGridComponent', () => {
|
describe('GalleryGridComponent', () => {
|
||||||
let component: GalleryGridComponent;
|
let component: GalleryGridComponent;
|
||||||
let fixture: ComponentFixture<GalleryGridComponent>;
|
let fixture: ComponentFixture<GalleryGridComponent>;
|
||||||
@ -38,6 +42,7 @@ describe('GalleryGridComponent', () => {
|
|||||||
{provide: QueryService, useClass: MockQueryService},
|
{provide: QueryService, useClass: MockQueryService},
|
||||||
{provide: OverlayService, useClass: MockOverlayService},
|
{provide: OverlayService, useClass: MockOverlayService},
|
||||||
{provide: GallerySortingService, useClass: MockGallerySortingService},
|
{provide: GallerySortingService, useClass: MockGallerySortingService},
|
||||||
|
{provide: GalleryNavigatorService, useClass: MockGalleryNavigatorService},
|
||||||
{provide: OverlayService, useClass: MockOverlayService},
|
{provide: OverlayService, useClass: MockOverlayService},
|
||||||
{
|
{
|
||||||
provide: ActivatedRoute,
|
provide: ActivatedRoute,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user