fix tests

This commit is contained in:
Art Lowel
2020-04-29 14:12:45 +02:00
parent c87d0895b0
commit 2a6e0c796a
5 changed files with 10 additions and 10 deletions

View File

@@ -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');