From 54ed0e364b15bd25cc1feb59d4f1de8350de1115 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 25 Oct 2023 11:21:34 +0100 Subject: [PATCH] fix accessing private members in the test --- .../lib/process-list/services/process-filter.service.spec.ts | 4 ++-- .../src/lib/process-list/services/process-filter.service.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 f480c4c601a..f7d74156ee2 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 @@ -307,8 +307,8 @@ describe('Process filter', () => { const duplicateRunningObservable = of(duplicateRunningFilter); spyOn(service, 'getRunningFilterInstance').and.returnValue(runningFilter); - spyOn(service, 'getCompletedFilterInstance').and.returnValue(completedFilter); - spyOn(service, 'getAllFilterInstance').and.returnValue(allFilter); + spyOn(service, 'getCompletedFilterInstance').and.returnValue(completedFilter); + spyOn(service, 'getAllFilterInstance').and.returnValue(allFilter); spyOn(service, 'addProcessFilter').and.returnValues( runningObservable, diff --git a/lib/process-services/src/lib/process-list/services/process-filter.service.ts b/lib/process-services/src/lib/process-list/services/process-filter.service.ts index 70c08a52c09..fd6e318425d 100644 --- a/lib/process-services/src/lib/process-list/services/process-filter.service.ts +++ b/lib/process-services/src/lib/process-list/services/process-filter.service.ts @@ -185,7 +185,7 @@ export class ProcessFilterService { } } - private getCompletedFilterInstance(appId: number, index?: number): FilterProcessRepresentationModel { + getCompletedFilterInstance(appId: number, index?: number): FilterProcessRepresentationModel { return new FilterProcessRepresentationModel({ name: 'Completed', appId, @@ -196,7 +196,7 @@ export class ProcessFilterService { }); } - private getAllFilterInstance(appId: number, index?: number): FilterProcessRepresentationModel { + getAllFilterInstance(appId: number, index?: number): FilterProcessRepresentationModel { return new FilterProcessRepresentationModel({ name: 'All', appId,