<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ky_yk_d</author_name>
  <author_url>https://blog.hatena.ne.jp/ky_yk_d/</author_url>
  <blog_title>こまぶろ</blog_title>
  <blog_url>https://ky-yk-d.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>Angular*1のHTTP通信部分（Serviceクラス）のテスト*2を書く際に、派手につまずいたので対応方法と経緯をメモ。 テスト対象の実装 HTTP通信には、AngularのHttpClientを用いている。 実装側のコードにおいては、公式ドキュメントにあるように、通信を使用するModuleクラス*3でHttpClientModuleをインポートしたうえで、ServiceクラスにHttpClientをインジェクトする。これでHTTP通信が利用できるようになる。 これのテストコードを書きたい。公式ドキュメントには、モックを用いたテストの方法が書いてあるが、今回は実際のAPI（サーバーサイド…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fky-yk-d.hatenablog.com%2Fentry%2F2018%2F12%2F23%2F171245&quot; title=&quot;【Angular】HTTP通信のテストでのインジェクションのエラーの解消 - こまぶろ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-23 17:12:45</published>
  <title>【Angular】HTTP通信のテストでのインジェクションのエラーの解消</title>
  <type>rich</type>
  <url>https://ky-yk-d.hatenablog.com/entry/2018/12/23/171245</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
