mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
reset pagination on data source change (#2443)
This commit is contained in:
committed by
Eugenio Romano
parent
bdd26e6c42
commit
100479f017
@@ -972,4 +972,11 @@ describe('DocumentList', () => {
|
||||
|
||||
expect(documentList.reload).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
|
||||
it('should reset pagination when switching sources', () => {
|
||||
spyOn(documentList, 'resetPagination').and.callThrough();
|
||||
documentList.loadFolderByNodeId('-trashcan-');
|
||||
documentList.loadFolderByNodeId('-sites-');
|
||||
expect(documentList.resetPagination).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user