mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[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:
committed by
Cilibiu Bogdan
parent
0d727a5ffd
commit
5234a875e7
@@ -92,7 +92,7 @@ describe('RecentFiles Routed Component', () => {
|
||||
it('should reload nodes on onDeleteNode event', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
contentService.deleteNode.next();
|
||||
contentService.nodeDeleted.next();
|
||||
|
||||
expect(component.refresh).toHaveBeenCalled();
|
||||
});
|
||||
@@ -100,7 +100,7 @@ describe('RecentFiles Routed Component', () => {
|
||||
it('should reload on onRestoreNode event', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
contentService.restoreNode.next();
|
||||
contentService.nodeRestored.next();
|
||||
|
||||
expect(component.refresh).toHaveBeenCalled();
|
||||
});
|
||||
@@ -108,7 +108,7 @@ describe('RecentFiles Routed Component', () => {
|
||||
it('should reload on move node event', () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
contentService.moveNode.next();
|
||||
contentService.nodeMoved.next();
|
||||
|
||||
expect(component.refresh).toHaveBeenCalled();
|
||||
});
|
||||
|
Reference in New Issue
Block a user