mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
fix tests
This commit is contained in:
@@ -148,7 +148,7 @@ describe('WorkspaceitemActionsComponent', () => {
|
||||
|
||||
it('should display a success notification on delete success', async(() => {
|
||||
spyOn((component as any).modalService, 'open').and.returnValue({result: Promise.resolve('ok')});
|
||||
mockDataService.delete.and.returnValue(observableOf(true));
|
||||
mockDataService.delete.and.returnValue(observableOf({ isSuccessful: true }));
|
||||
spyOn(component, 'reload');
|
||||
|
||||
component.confirmDiscard('ok');
|
||||
|
Reference in New Issue
Block a user