<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hagino_3000</author_name>
  <author_url>https://blog.hatena.ne.jp/hagino_3000/</author_url>
  <blog_title>hagino3000's blog</blog_title>
  <blog_url>https://hagino3000.hatenablog.com/</blog_url>
  <categories>
    <anon>node.js</anon>
  </categories>
  <description>サーバーにnodeを使いつつTDDをするためにnodeunitを使ってみた。試しにmongoDBの操作を直列で記述できるラッパーを作って、それのテストケースを3つ書いた。テストコード var mongodb = require('mongodb'); var Transaction = require('./mongotransaction').MongoTransaction; var db, case1 = {}; case1.setUp = function(next) { var server = new mongodb.Server(&quot;127.0.0.1&quot;, 27017, {}); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhagino3000.hatenablog.com%2Fentry%2F20110411%2Fnodeunit&quot; title=&quot;nodeunitを使ったテストコード - hagino3000&amp;#39;s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/h/hagino_3000/20110411/20110411194636.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-04-11 00:00:00</published>
  <title>nodeunitを使ったテストコード</title>
  <type>rich</type>
  <url>https://hagino3000.hatenablog.com/entry/20110411/nodeunit</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
