Skip to content

Commit

Permalink
fix accessing private members in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Oct 25, 2023
1 parent fbd2779 commit 54ed0e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ describe('Process filter', () => {
const duplicateRunningObservable = of(duplicateRunningFilter);

spyOn(service, 'getRunningFilterInstance').and.returnValue(runningFilter);
spyOn<any>(service, 'getCompletedFilterInstance').and.returnValue(completedFilter);
spyOn<any>(service, 'getAllFilterInstance').and.returnValue(allFilter);
spyOn(service, 'getCompletedFilterInstance').and.returnValue(completedFilter);
spyOn(service, 'getAllFilterInstance').and.returnValue(allFilter);

spyOn(service, 'addProcessFilter').and.returnValues(
runningObservable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 54ed0e3

Please sign in to comment.