title: How to test unit test a void function in Angular?
body: <p>I'm new to angular and I'm testing my Login component that goes that's something like this.It has a <code>handleLogin()</code> function which is void.It redirects to another function as shown below.</p>
  
  <p><img src="https://i.stack.imgur.com/OT88V.png" alt="loginComponent"></p>
  
  <p>How can I test this function?. It redirects to some other function that also redirects to somewhere else. How to test such a complex function.</p>