Simplified tests for HeroService
authorKai Moritz <kai@juplo.de>
Sat, 27 Jun 2020 12:37:38 +0000 (14:37 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 27 Jun 2020 12:37:38 +0000 (14:37 +0200)
commitc2ce800fc99390d95d4cfcce93f597490f6a948b
tree7061cc3288e1397721ffe09b0fd48a0f923439fe
parent2221767df6737334e1a4c69b46722bb842f94823
Simplified tests for HeroService

* See: https://medium.com/netscape/testing-with-the-angular-httpclient-api-648203820712
* Note: error-handling is not needed here, because the errors
  (500 / 404) are handled in the service and the expected result
  is already tested.
src/app/hero.service.spec.ts