Skip to content

Commit 4e88dec

Browse files
committed
ORCID enhancement working - todo cleanup the code
1 parent 2ca1a31 commit 4e88dec

4 files changed

Lines changed: 363 additions & 83 deletions

File tree

src/app/core/submission/vocabularies/vocabulary.service.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { createPaginatedList } from '../../../shared/testing/utils.test';
2525
import { RequestEntry } from '../../data/request-entry.model';
2626
import { VocabularyDataService } from './vocabulary.data.service';
2727
import { VocabularyEntryDetailsDataService } from './vocabulary-entry-details.data.service';
28+
import { ExternalSourceDataService } from '../../data/external-source-data.service';
2829

2930
describe('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

Comments
 (0)