Skip to content

Commit

Permalink
[DSC-1184] Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vins01-4science committed Oct 25, 2023
1 parent e799e78 commit 6e05504
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(), [])),
Expand Down Expand Up @@ -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,
Expand All @@ -56,7 +58,8 @@ describe('DsoVersioningModalService', () => {
itemVersionShared,
router,
workspaceItemDataService,
itemService
itemService,
editItemService,
);
}));
describe('when onCreateNewVersion() is called', () => {
Expand Down

0 comments on commit 6e05504

Please sign in to comment.