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

@@ -48,7 +48,7 @@ describe('DeleteComColPageComponent', () => {
dsoDataService = jasmine.createSpyObj(
'dsoDataService',
{
delete: observableOf(true)
delete: observableOf({ isSuccessful: true })
});
routerStub = {
@@ -106,7 +106,7 @@ describe('DeleteComColPageComponent', () => {
});
it('should show an error notification on failure', () => {
(dsoDataService.delete as any).and.returnValue(observableOf(false));
(dsoDataService.delete as any).and.returnValue(observableOf({ isSuccessful: false }));
spyOn(router, 'navigate');
comp.onConfirm(data2);
fixture.detectChanges();