Nine easy-to-follow examples using TestBed, fixtures, async and fakeAsync/tick. In this post, we want to cover the most common unit tests to use for Angular Applications, like: Components, Services, Http and Pipes; but also some less known areas like: Directives, the Router or Observables.
Full article