[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:
Aayush Rohila
2023-08-22 12:28:40 +05:30
committed by GitHub
parent 9d1a6ae57b
commit bc9c58176f
2 changed files with 11 additions and 1 deletions

View File

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