title: Angular unit test anonimous arrow function
body: <p>How can i cover all statements of this function?</p>
  <p><a href="https://i.stack.imgur.com/w0m8u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w0m8u.png" alt="enter image description here" /></a></p>
  <p>So far i have writen below spec, but cannot figured out how to cover all statements.</p>
  <p><a href="https://i.stack.imgur.com/7w2p9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7w2p9.png" alt="enter image description here" /></a></p>