mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3082] Task Filter - Custom Task filters don't work (#3402)
* [ADF-3082] Custom Task filters don't work. * Added an sorting input to the datatable. * Updated documentation for the recent changes. * Added testcases for the recent changes. * [ADF-3082] Custom Task filters don't work * Added a sorting input to the datatable * Added testcases to the recent changes. * Updated doc for the recent changes. * * Refactored task/process list dataSort. * * Refactored process/task list datasort method
This commit is contained in:
committed by
Maurizio Vitale
parent
a11766aa23
commit
9eae0fcc8f
@@ -334,6 +334,12 @@ describe('TaskListComponent', () => {
|
||||
expect(component.getCurrentId()).toBeNull();
|
||||
});
|
||||
|
||||
it('should return the sorting order if sort is defined', () => {
|
||||
component.sort = 'fakeKey-fakeOrder';
|
||||
fixture.detectChanges();
|
||||
expect(component.dataSort).toEqual(['fakeKey', 'fakeOrder']);
|
||||
});
|
||||
|
||||
it('should return selected true for the selected task', () => {
|
||||
component.data = new ObjectDataTableAdapter(
|
||||
[
|
||||
|
Reference in New Issue
Block a user