@@ -20,15 +20,18 @@ import { environment } from '../../../../../../environments/environment.test';
2020import { AuthService } from '../../../../../core/auth/auth.service' ;
2121import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service' ;
2222import { AuthorizationDataService } from '../../../../../core/data/feature-authorization/authorization-data.service' ;
23+ import { FileService } from '../../../../../core/shared/file.service' ;
2324import { Item } from '../../../../../core/shared/item.model' ;
2425import { ITEM } from '../../../../../core/shared/item.resource-type' ;
26+ import { MathService } from '../../../../../core/shared/math.service' ;
2527import { METRIC } from '../../../../../core/shared/metric.resource-type' ;
2628import { XSRFService } from '../../../../../core/xsrf/xsrf.service' ;
2729import { DSONameServiceMock } from '../../../../mocks/dso-name.service.mock' ;
2830import { getMockThemeService } from '../../../../mocks/theme-service.mock' ;
2931import { ActivatedRouteStub } from '../../../../testing/active-router.stub' ;
3032import { AuthServiceStub } from '../../../../testing/auth-service.stub' ;
3133import { AuthorizationDataServiceStub } from '../../../../testing/authorization-service.stub' ;
34+ import { FileServiceStub } from '../../../../testing/file-service.stub' ;
3235import { TruncatableServiceStub } from '../../../../testing/truncatable-service.stub' ;
3336import { ThemeService } from '../../../../theme-support/theme.service' ;
3437import { TruncatableService } from '../../../../truncatable/truncatable.service' ;
@@ -84,13 +87,15 @@ describe('ItemListElementComponent', () => {
8487 let activatedRoute : ActivatedRouteStub ;
8588 let authService : AuthServiceStub ;
8689 let authorizationService : AuthorizationDataServiceStub ;
90+ let fileService : FileServiceStub ;
8791 let themeService : ThemeService ;
8892 let truncatableService : TruncatableServiceStub ;
8993
9094 beforeEach ( waitForAsync ( ( ) => {
9195 activatedRoute = new ActivatedRouteStub ( ) ;
9296 authService = new AuthServiceStub ( ) ;
9397 authorizationService = new AuthorizationDataServiceStub ( ) ;
98+ fileService = new FileServiceStub ( ) ;
9499 themeService = getMockThemeService ( ) ;
95100 truncatableService = new TruncatableServiceStub ( ) ;
96101
@@ -105,6 +110,9 @@ describe('ItemListElementComponent', () => {
105110 { provide : ActivatedRoute , useValue : activatedRoute } ,
106111 { provide : AuthService , useValue : authService } ,
107112 { provide : AuthorizationDataService , useValue : authorizationService } ,
113+ { provide : XSRFService , useValue : { } } ,
114+ { provide : MathService , useValue : { } } ,
115+ { provide : FileService , useValue : fileService } ,
108116 { provide : ThemeService , useValue : themeService } ,
109117 { provide : TruncatableService , useValue : truncatableService } ,
110118 { provide : XSRFService , useValue : { } } ,
0 commit comments