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