@@ -412,7 +412,7 @@ describe('SubmissionService', () => {
412412
413413 const searchService = getMockSearchService ( ) ;
414414
415- const requestServce = getMockRequestService ( ) ;
415+ const requestService = getMockRequestService ( ) ;
416416
417417 beforeEach ( waitForAsync ( ( ) => {
418418 itemService = new ItemDataServiceStub ( ) ;
@@ -432,7 +432,7 @@ describe('SubmissionService', () => {
432432 { provide : SubmissionRestService , useValue : restService } ,
433433 { provide : ActivatedRoute , useValue : new MockActivatedRoute ( ) } ,
434434 { provide : SearchService , useValue : searchService } ,
435- { provide : RequestService , useValue : requestServce } ,
435+ { provide : RequestService , useValue : requestService } ,
436436 { provide : SubmissionJsonPatchOperationsService , useValue : submissionJsonPatchOperationsService } ,
437437 { provide : ItemDataService , useValue : itemService } ,
438438 NotificationsService ,
@@ -980,6 +980,7 @@ describe('SubmissionService', () => {
980980 it ( 'should redirect to Item page' , fakeAsync ( ( ) => {
981981 scheduler = getTestScheduler ( ) ;
982982
983+ ( requestService . setStaleByHrefSubstring as jasmine . Spy ) . calls . reset ( ) ;
983984 const itemUuid = 'd62fc60f-e9a5-48e6-973a-90819acf23ae' ;
984985 const mockBundle = Object . assign ( new Bundle ( ) , {
985986 _links : {
@@ -999,7 +1000,6 @@ describe('SubmissionService', () => {
9991000 } ) ;
10001001 let itemSubmissionId = itemUuid + ':FULL' ;
10011002 spyOn ( itemService as any , 'findById' ) . and . returnValue ( cold ( 'a' , { a : createSuccessfulRemoteDataObject ( mockItem ) } ) ) ;
1002- spyOn ( requestServce as any , 'setStaleByHrefSubstring' ) . and . returnValue ( cold ( 'a' , { a : true } ) ) ;
10031003
10041004 scheduler . schedule ( ( ) => service . invalidateCacheAndRedirectToItemPage ( itemSubmissionId ) ) ;
10051005 scheduler . flush ( ) ;
0 commit comments