Jasmine test anchor element click without opening tab
In my Angular 17 application, I have some anchor element that has both an href for navigation and a click handler. I’m not worried about testing the href, but I’m trying write a simple “should call function” test for the click handler.