{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20111007%2F1317983470\" title=\"nodeunit\u3067\u30c6\u30b9\u30c8\u306e\u6700\u521d\u3068\u6700\u5f8c\u3060\u3051\u51e6\u7406\u3057\u305f\u3044 - hokaccha memo\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_url":"https://blog.hatena.ne.jp/hokaccha/","url":"https://hokaccha.hatenablog.com/entry/20111007/1317983470","version":"1.0","categories":["Node.js"],"blog_title":"hokaccha memo","blog_url":"https://hokaccha.hatenablog.com/","author_name":"hokaccha","provider_name":"Hatena Blog","height":"190","title":"nodeunit\u3067\u30c6\u30b9\u30c8\u306e\u6700\u521d\u3068\u6700\u5f8c\u3060\u3051\u51e6\u7406\u3057\u305f\u3044","published":"2011-10-07 19:31:10","image_url":null,"provider_url":"https://hatena.blog","type":"rich","description":"\u3088\u3046\u306fDB\u306e\u63a5\u7d9a\u3068\u5207\u65ad\u3092\u3057\u305f\u3044\u3093\u3060\u3051\u3069\u3001\u30c6\u30b9\u30c8\u5168\u4f53\u306e\u6700\u521d\u3068\u6700\u5f8c\u306b\u306a\u3093\u304b\u51e6\u7406\u3059\u308b\u307f\u305f\u3044\u306e\u306f\u3067\u304d\u3093\u306e\u304b\u306a\u3002nodeunit.testCase()\u306esetUp\u3068tearDown\u306f\u4e00\u56de\u306e\u30c6\u30b9\u30c8\u6bce\u306b\u5b9f\u884c\u3055\u308c\u308b\u304b\u3089\u6bce\u56de\u63a5\u7d9a/\u5207\u65ad\u3057\u3066\u308b\u3068\u30c6\u30b9\u30c8\u306e\u901f\u5ea6\u304c\u843d\u3061\u308b\u3093\u3060\u3088\u306a\u3042\u3002 module.exports = nodeunit.testCase({ init: function() { DB\u63a5\u7d9a\u51e6\u7406 }, test: ... ... destory: function() { DB\u5207\u65ad\u51e6\u7406 } }); \u3068\u304b\u3067\u3082\u307e\u3042\u3044\u3044\u3093\u3060\u3051\u3069init, destory\u3082\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u6570\u306b\u542b\u307e\u308c\u308b\u306e\u304c\u5fae\u5999\u3002\u3067\u304d\u308c\u3070\u8907\u6570\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u2026"}