From 6e055043d04c932cab0de2fd8b853757c2e0e414 Mon Sep 17 00:00:00 2001 From: Vincenzo Mecca Date: Wed, 25 Oct 2023 14:38:36 +0200 Subject: [PATCH] [DSC-1184] Fixes tests --- .../dso-versioning-modal.service.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/shared/dso-page/dso-versioning-modal-service/dso-versioning-modal.service.spec.ts b/src/app/shared/dso-page/dso-versioning-modal-service/dso-versioning-modal.service.spec.ts index fc5c1dafc97..a8db842070e 100644 --- a/src/app/shared/dso-page/dso-versioning-modal-service/dso-versioning-modal.service.spec.ts +++ b/src/app/shared/dso-page/dso-versioning-modal-service/dso-versioning-modal.service.spec.ts @@ -18,6 +18,7 @@ describe('DsoVersioningModalService', () => { let router; let workspaceItemDataService; let itemService; + let editItemService; const mockItem: Item = Object.assign(new Item(), { bundles: createSuccessfulRemoteDataObject$(buildPaginatedList(new PageInfo(), [])), @@ -48,6 +49,7 @@ describe('DsoVersioningModalService', () => { router = jasmine.createSpyObj('router', ['navigateByUrl']); workspaceItemDataService = jasmine.createSpyObj('workspaceItemDataService', ['findByItem']); itemService = jasmine.createSpyObj('itemService', ['findByHref']); + editItemService = jasmine.createSpyObj('editItemService', ['invalidateItemCache']); service = new DsoVersioningModalService( modalService, @@ -56,7 +58,8 @@ describe('DsoVersioningModalService', () => { itemVersionShared, router, workspaceItemDataService, - itemService + itemService, + editItemService, ); })); describe('when onCreateNewVersion() is called', () => {