I am learning unit testing in Angular 9 with Jasmine. I have to test the following function. I can not change the code of the component. I would have ideally written a separate