document list reload (#298)

This commit is contained in:
Cilibiu Bogdan
2018-04-11 18:17:08 +03:00
committed by GitHub
parent b47fc2cb3f
commit f52cd4a31f
3 changed files with 3 additions and 5 deletions

View File

@@ -193,8 +193,6 @@ describe('Libraries Routed Component', () => {
component.navigate(node.id);
fixture.detectChanges();
expect(routerSpy.calls.argsFor(0)[0]).toEqual(['./', document.id]);
});
});

View File

@@ -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', () => {

View File

@@ -56,7 +56,7 @@ export class TrashcanComponent implements OnInit, OnDestroy {
}
refresh(): void {
this.documentList.loadTrashcan();
this.documentList.reload();
this.documentList.resetSelection();
}