mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
fixed tests after angular 10 upgrade
This commit is contained in:
@@ -91,7 +91,7 @@ describe('SubmissionImportExternalComponent test suite', () => {
|
||||
comp = fixture.componentInstance;
|
||||
compAsAny = comp;
|
||||
scheduler = getTestScheduler();
|
||||
mockExternalSourceService.getExternalSourceEntries.and.returnValue(createSuccessfulRemoteDataObject$(createPaginatedList([])))
|
||||
mockExternalSourceService.getExternalSourceEntries.and.returnValue(createSuccessfulRemoteDataObject$(createPaginatedList([])));
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
@@ -131,7 +131,7 @@ describe('SubmissionImportExternalComponent test suite', () => {
|
||||
it('Should call \'router.navigate\'', () => {
|
||||
comp.routeData = { sourceId: '', query: '' };
|
||||
spyOn(compAsAny, 'retrieveExternalSources').and.callFake(() => null);
|
||||
compAsAny.router.navigate.and.returnValue( new Promise(() => {return;}))
|
||||
compAsAny.router.navigate.and.returnValue( new Promise(() => {return;}));
|
||||
const event = { sourceId: 'orcidV2', query: 'dummy' };
|
||||
|
||||
scheduler.schedule(() => comp.getExternalSourceData(event));
|
||||
|
Reference in New Issue
Block a user