[ACA-1135] spike on deleting nodes from the viewer (#192)

* delete/restore from the viewer

* rename content management service events

* test fixes

* offload node delete/restore to content service

* improve tests
This commit is contained in:
Denys Vuika
2018-02-21 06:00:58 +00:00
committed by Cilibiu Bogdan
parent 0d727a5ffd
commit 5234a875e7
19 changed files with 147 additions and 44 deletions

View File

@@ -194,19 +194,19 @@ describe('FilesComponent', () => {
});
it('calls refresh deleteNode event', () => {
contentManagementService.deleteNode.next();
contentManagementService.nodeDeleted.next();
expect(component.load).toHaveBeenCalled();
});
it('calls refresh moveNode event', () => {
contentManagementService.moveNode.next();
contentManagementService.nodeMoved.next();
expect(component.load).toHaveBeenCalled();
});
it('calls refresh restoreNode event', () => {
contentManagementService.restoreNode.next();
contentManagementService.nodeRestored.next();
expect(component.load).toHaveBeenCalled();
});