{"blog_url":"https://hpcmemo.hatenablog.com/","url":"https://hpcmemo.hatenablog.com/entry/2024/02/11/142107","blog_title":"HPC\u30e1\u30e2","width":"100%","published":"2024-02-11 14:21:07","author_name":"n_so5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhpcmemo.hatenablog.com%2Fentry%2F2024%2F02%2F11%2F142107\" title=\"mocha \u3067\u3042\u308b\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u706b\u3057\u305f\u5f8c\u306b\u8272\u3005\u30c6\u30b9\u30c8\u3057\u305f\u3044\u6642 - HPC\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null,"categories":[],"description":"\u30c6\u30b9\u30c8\u5bfe\u8c61\u306e\u95a2\u6570\u304c\u30a4\u30d9\u30f3\u30c8\u30d9\u30fc\u30b9\u306e\u975e\u540c\u671f\u95a2\u6570\u3067\u3001\u3042\u308b\u30a4\u30d9\u30f3\u30c8(\u3053\u3053\u3067\u306f\"close\"\u3068\u3057\u307e\u3059)\u304c\u7d42\u308f\u3063\u305f\u5f8c\u3067\u4f55\u304b\u5024\u306e\u691c\u8a3c\u3092\u3057\u305f\u3044\u3063\u3066\u6642\u306b\u3001\u4eca\u307e\u3067\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u3002 it(\"should fire close\", (done)=> hoge.on(\"close\", ()=>{ expect(huga).to.equal(\"piyo\"); }); }); \u3053\u308c\u3067\u3082\u6b63\u5e38\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3068\u30c6\u30b9\u30c8\u81ea\u4f53\u306f\u554f\u984c\u7121\u3044\u3093\u3067\u3059\u304c\u3001expect\u3067\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3044\u308b\u9805\u76ee\u304cfail\u3057\u305f\u6642\u306b\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u307e\u3067\u5f85\u305f\u3055\u308c\u308b\u4e0a\u306b \u843d\u3061\u305f\u5834\u6240\u3082\u5206\u304b\u308a\u307e\u305b\u3093\u3002 \u3067\u3001\u4eca\u307e\u3067\u306f\u30c6\u30b9\u30c8\u306bfail\u3057\u305f\u3089\u3001expect\u306e\u524d\u5f8c\u306bDE\u2026","height":"190","author_url":"https://blog.hatena.ne.jp/n_so5/","title":"mocha \u3067\u3042\u308b\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u706b\u3057\u305f\u5f8c\u306b\u8272\u3005\u30c6\u30b9\u30c8\u3057\u305f\u3044\u6642","version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog"}