From 87085e152dcae533072030a0b3a343d8816a8f17 Mon Sep 17 00:00:00 2001 From: Vincenzo Mecca Date: Tue, 14 Nov 2023 10:05:44 +0100 Subject: [PATCH] [DSC-1184] Fixes test compilation errors --- .../dso-versioning-modal.service.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 a8db842070e..0e6cc177c20 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 @@ -19,6 +19,7 @@ describe('DsoVersioningModalService', () => { let workspaceItemDataService; let itemService; let editItemService; + let authorizationService; const mockItem: Item = Object.assign(new Item(), { bundles: createSuccessfulRemoteDataObject$(buildPaginatedList(new PageInfo(), [])), @@ -50,6 +51,7 @@ describe('DsoVersioningModalService', () => { workspaceItemDataService = jasmine.createSpyObj('workspaceItemDataService', ['findByItem']); itemService = jasmine.createSpyObj('itemService', ['findByHref']); editItemService = jasmine.createSpyObj('editItemService', ['invalidateItemCache']); + authorizationService = jasmine.createSpyObj('authorizationService', ['invalidateAuthorization']); service = new DsoVersioningModalService( modalService, @@ -58,8 +60,9 @@ describe('DsoVersioningModalService', () => { itemVersionShared, router, workspaceItemDataService, - itemService, - editItemService, + itemService, + editItemService, + authorizationService, ); })); describe('when onCreateNewVersion() is called', () => {