mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-08 14:51:14 +00:00
[ACS-5654] Retain filter header in document list. (#3381)
* [ACS-5654] Retain filter header in document list. * [ACS-5654 Unit tests] * [ACS-5654] Unit test update
This commit is contained in:
@@ -156,6 +156,14 @@ describe('FilesComponent', () => {
|
||||
|
||||
expect(router.navigate['calls'].argsFor(0)[0]).toEqual(['/personal-files', 'parent-id']);
|
||||
});
|
||||
|
||||
it('should check isFilterHeaderActive to be true when filters are present in queryParamMap', () => {
|
||||
Object.defineProperty(route, 'queryParamMap', { value: of({ params: { $thumbnail: 'TYPE:"cm:folder"' } }) });
|
||||
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(component.isFilterHeaderActive).toBeTrue();
|
||||
});
|
||||
});
|
||||
|
||||
describe('refresh on events', () => {
|
||||
|
Reference in New Issue
Block a user