mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1677] fix issues with paging (#2446)
* fix issues with paging * update unit test
This commit is contained in:
committed by
Eugenio Romano
parent
48f0ccfc4f
commit
7894d687ab
@@ -975,8 +975,10 @@ describe('DocumentList', () => {
|
||||
|
||||
it('should reset pagination when switching sources', () => {
|
||||
spyOn(documentList, 'resetPagination').and.callThrough();
|
||||
documentList.loadFolderByNodeId('-trashcan-');
|
||||
documentList.loadFolderByNodeId('-sites-');
|
||||
|
||||
documentList.ngOnChanges({currentFolderId: new SimpleChange(null, '-trashcan-', false)});
|
||||
documentList.ngOnChanges({currentFolderId: new SimpleChange(null, '-sites-', false)});
|
||||
|
||||
expect(documentList.resetPagination).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user