@@ -34,6 +34,9 @@ import { ThemeService } from '../../../../theme-support/theme.service';
3434import { TruncatableService } from '../../../../truncatable/truncatable.service' ;
3535import { TruncatePipe } from '../../../../utils/truncate.pipe' ;
3636import { ItemListElementComponent } from './item-list-element.component' ;
37+ import { MathService } from '../../../../../core/shared/math.service' ;
38+ import { FileService } from '../../../../../core/shared/file.service' ;
39+ import { FileServiceStub } from '../../../../testing/file-service.stub' ;
3740
3841const mockItem : Item = Object . assign ( new Item ( ) , {
3942 bundles : observableOf ( { } ) ,
@@ -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