title: How to test map and tap pipe from RXJS in Angular
body: <p>I am wanting to test my code below, but I'm not sure how to test the map and tap (from RXJS) functions. Should I make a mock, use a spy?</p>
  
  <p>Should I even really test these? I have a habit of getting 100% coverage for only achieving that goal (100% coverage), but I'm learning that 100% isn't always needed or beneficial. But in this case, map and tap are pretty crucial to the function.
  I'd really appreciate any advice, thank you.</p>
  
  <p>I am using Angular 9.</p>
  
  <p>The red lines are untested.</p>
  
  <p><a href="https://i.stack.imgur.com/vruqj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vruqj.png" alt="enter image description here"></a></p>