<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suisho000000</author_name>
  <author_url>https://blog.hatena.ne.jp/suisho000000/</author_url>
  <blog_title>ひ孫</blog_title>
  <blog_url>https://sui.hateblo.jp/</blog_url>
  <categories>
    <anon>node.js</anon>
    <anon>テストコード</anon>
  </categories>
  <description>node.jsでmodule.exportに書かない部分は外からアクセス出来ないプライベートな関数になる。 困っちゃうのがこれをテストしようとするとき。 結局テストのときだけ外に出したりutil作ったりといろいろ不恰好になって困っていたけど(rewire)rewireというモジュールがとても便利 例えばこんなモジュール function initParams(input, options, callback){ if(typeof options === &quot;function&quot;){ callback = options; options = {}; } if(!options) options …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsui.hateblo.jp%2Fentry%2F2013%2F03%2F02%2F032703&quot; title=&quot;node.jsのprivateな関数のテストにrewireがすごく便利 - ひ孫&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>2013-03-02 03:27:03</published>
  <title>node.jsのprivateな関数のテストにrewireがすごく便利</title>
  <type>rich</type>
  <url>https://sui.hateblo.jp/entry/2013/03/02/032703</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
