diff --git a/lib/process-services/src/lib/process-list/services/process-filter.service.spec.ts b/lib/process-services/src/lib/process-list/services/process-filter.service.spec.ts index 67a51e01a47..b02d11e2871 100644 --- a/lib/process-services/src/lib/process-list/services/process-filter.service.spec.ts +++ b/lib/process-services/src/lib/process-list/services/process-filter.service.spec.ts @@ -236,30 +236,30 @@ describe('Process filter', () => { }); describe('isFilterAlreadyExisting', () => { - let dummyFilter; + let dummyProcessFilters; beforeEach(() => { - dummyFilter = [ - { name: 'filter1' }, - { name: 'filter2' } + dummyProcessFilters = [ + { name: 'processFilter1' }, + { name: 'processiFlter2' } ]; }); it('should return true if the filter already exists', () => { - const filterName = 'filter2'; + const processFilterName = 'processiFlter2'; const isFilterAlreadyExistingSpy = spyOn(service, 'isFilterAlreadyExisting').and.callThrough(); - const result = service.isFilterAlreadyExisting(dummyFilter, filterName); + const result = service.isFilterAlreadyExisting(dummyProcessFilters, processFilterName); expect(isFilterAlreadyExistingSpy).toHaveBeenCalled(); expect(result).toBe(true); }); it('should return false if the filter does not exist', () => { - const filterName = 'filter3'; + const processFilterName = 'processiFlter3'; const isFilterAlreadyExistingSpy = spyOn(service, 'isFilterAlreadyExisting').and.callThrough(); - const result = service.isFilterAlreadyExisting(dummyFilter, filterName); + const result = service.isFilterAlreadyExisting(dummyProcessFilters, processFilterName); expect(isFilterAlreadyExistingSpy).toHaveBeenCalled(); expect(result).toBe(false); diff --git a/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts b/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts index 03e7041cbab..50caaab0434 100644 --- a/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts +++ b/lib/process-services/src/lib/task-list/services/task-filter.service.spec.ts @@ -253,30 +253,30 @@ describe('Activiti Task filter Service', () => { }); describe('isFilterAlreadyExisting', () => { - let dummyFilter; + let dummyTaskFilters; beforeEach(() => { - dummyFilter = [ - { name: 'filter1' }, - { name: 'filter2' } + dummyTaskFilters = [ + { name: 'taskFilter1' }, + { name: 'taskFilter2' } ]; }); it('should return true if the filter already exists', () => { - const filterName = 'filter2'; + const taskFilterName = 'taskFilter2'; const isFilterAlreadyExistingSpy = spyOn(service, 'isFilterAlreadyExisting').and.callThrough(); - const result = service.isFilterAlreadyExisting(dummyFilter, filterName); + const result = service.isFilterAlreadyExisting(dummyTaskFilters, taskFilterName); expect(isFilterAlreadyExistingSpy).toHaveBeenCalled(); expect(result).toBe(true); }); it('should return false if the filter does not exist', () => { - const filterName = 'filter3'; + const taskFilterName = 'taskFilter3'; const isFilterAlreadyExistingSpy = spyOn(service, 'isFilterAlreadyExisting').and.callThrough(); - const result = service.isFilterAlreadyExisting(dummyFilter, filterName); + const result = service.isFilterAlreadyExisting(dummyTaskFilters, taskFilterName); expect(isFilterAlreadyExistingSpy).toHaveBeenCalled(); expect(result).toBe(false);