mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
fix ClaimedDeclinedSearchResultListElementComponent tests
This commit is contained in:
@@ -20,6 +20,9 @@ import { APP_CONFIG } from '../../../../../../config/app-config.interface';
|
|||||||
import { environment } from '../../../../../../environments/environment';
|
import { environment } from '../../../../../../environments/environment';
|
||||||
import { Context } from '../../../../../core/shared/context.model';
|
import { Context } from '../../../../../core/shared/context.model';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { mockTruncatableService } from '../../../../mocks/mock-trucatable.service';
|
||||||
|
import { ThemeService } from '../../../../theme-support/theme.service';
|
||||||
|
import { getMockThemeService } from '../../../../mocks/theme-service.mock';
|
||||||
|
|
||||||
let component: ClaimedDeclinedSearchResultListElementComponent;
|
let component: ClaimedDeclinedSearchResultListElementComponent;
|
||||||
let fixture: ComponentFixture<ClaimedDeclinedSearchResultListElementComponent>;
|
let fixture: ComponentFixture<ClaimedDeclinedSearchResultListElementComponent>;
|
||||||
@@ -71,7 +74,8 @@ describe('ClaimedDeclinedSearchResultListElementComponent', () => {
|
|||||||
ClaimedDeclinedSearchResultListElementComponent, VarDirective
|
ClaimedDeclinedSearchResultListElementComponent, VarDirective
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: TruncatableService, useValue: {} },
|
{ provide: TruncatableService, useValue: mockTruncatableService },
|
||||||
|
{ provide: ThemeService, useValue: getMockThemeService() },
|
||||||
{ provide: LinkService, useValue: linkService },
|
{ provide: LinkService, useValue: linkService },
|
||||||
{ provide: DSONameService, useClass: DSONameServiceMock },
|
{ provide: DSONameService, useClass: DSONameServiceMock },
|
||||||
{ provide: APP_CONFIG, useValue: environment }
|
{ provide: APP_CONFIG, useValue: environment }
|
||||||
|
Reference in New Issue
Block a user