@@ -25,6 +25,7 @@ import { createPaginatedList } from '../../../shared/testing/utils.test';
2525import { RequestEntry } from '../../data/request-entry.model' ;
2626import { VocabularyDataService } from './vocabulary.data.service' ;
2727import { VocabularyEntryDetailsDataService } from './vocabulary-entry-details.data.service' ;
28+ import { ExternalSourceDataService } from '../../data/external-source-data.service' ;
2829
2930describe ( 'VocabularyService' , ( ) => {
3031 let scheduler : TestScheduler ;
@@ -34,6 +35,7 @@ describe('VocabularyService', () => {
3435 let objectCache : ObjectCacheService ;
3536 let halService : HALEndpointService ;
3637 let hrefOnlyDataService : HrefOnlyDataService ;
38+ let externalSourceDataService : ExternalSourceDataService ;
3739 let responseCacheEntry : RequestEntry ;
3840
3941 const vocabulary : any = {
@@ -205,11 +207,13 @@ describe('VocabularyService', () => {
205207
206208 function initTestService ( ) {
207209 hrefOnlyDataService = getMockHrefOnlyDataService ( ) ;
210+ externalSourceDataService = jasmine . createSpyObj ( 'ExternalSourceDataService' , [ 'findAll' , 'findById' ] ) ;
208211
209212 return new VocabularyService (
210213 requestService ,
211214 new VocabularyDataService ( requestService , rdbService , objectCache , halService ) ,
212215 new VocabularyEntryDetailsDataService ( requestService , rdbService , objectCache , halService ) ,
216+ externalSourceDataService ,
213217 ) ;
214218 }
215219
0 commit comments