Skip to content

Commit 7b19ba7

Browse files
[DURACOM-134] Fixes
1 parent 2895cfe commit 7b19ba7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('WorkspaceitemsDeletePageComponent', () => {
2525
let fixture: ComponentFixture<WorkspaceItemsDeletePageComponent>;
2626

2727
const workspaceitemDataServiceSpy = jasmine.createSpyObj('WorkspaceitemDataService', {
28-
delete: jasmine.createSpy('delete')
28+
delete: observableOf(createSuccessfulRemoteDataObject({}))
2929
});
3030

3131
const wsi = new WorkspaceItem();
@@ -88,9 +88,7 @@ describe('WorkspaceitemsDeletePageComponent', () => {
8888
});
8989

9090
it('should have the current WorkspaceItem', () => {
91-
console.log( (component as any).activatedRoute, 'data wsi');
9291
(component as any).activatedRoute.data.subscribe((data) => {
93-
console.log(data, 'dataaa');
9492
expect(data.wsi.payload.id).toEqual('1234');
9593
});
9694
});
@@ -103,7 +101,6 @@ describe('WorkspaceitemsDeletePageComponent', () => {
103101
});
104102

105103
it('should call workspaceItemService.delete', () => {
106-
spyOn(workspaceitemDataServiceSpy, 'delete').and.returnValue(observableOf(createSuccessfulRemoteDataObject({})));
107104
component.sendDeleteRequest();
108105
expect((component as any).workspaceItemService.delete).toHaveBeenCalledWith('1234');
109106
});

0 commit comments

Comments
 (0)