mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
document list reload (#298)
This commit is contained in:
@@ -193,8 +193,6 @@ describe('Libraries Routed Component', () => {
|
||||
|
||||
component.navigate(node.id);
|
||||
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(routerSpy.calls.argsFor(0)[0]).toEqual(['./', document.id]);
|
||||
});
|
||||
});
|
||||
|
@@ -112,7 +112,7 @@ describe('TrashcanComponent', () => {
|
||||
preferenceService = TestBed.get(UserPreferencesService);
|
||||
|
||||
component.documentList = {
|
||||
loadTrashcan: jasmine.createSpy('loadTrashcan'),
|
||||
reload: jasmine.createSpy('reload'),
|
||||
resetSelection: jasmine.createSpy('resetSelection')
|
||||
};
|
||||
});
|
||||
@@ -136,7 +136,7 @@ describe('TrashcanComponent', () => {
|
||||
describe('refresh()', () => {
|
||||
it('calls child component to reload', () => {
|
||||
component.refresh();
|
||||
expect(component.documentList.loadTrashcan).toHaveBeenCalled();
|
||||
expect(component.documentList.reload).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('calls child component to reset selection', () => {
|
||||
|
@@ -56,7 +56,7 @@ export class TrashcanComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
refresh(): void {
|
||||
this.documentList.loadTrashcan();
|
||||
this.documentList.reload();
|
||||
this.documentList.resetSelection();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user