JavaScript Advent Calendar 2014 11æ¥ç®ã ãããªãè¦ç´: Promiseãéåæãã¹ãã®ã¢ãµã¼ã·ã§ã³ãç°¡å確å®ã«æ¸ããããã«ãªãesplanã¨ããã©ã¤ãã©ãªã®PoCãä½ã£ã話ã Promiseãéåæã®ãã¹ãã¯é£ãã 詳ããã¯JavaScript Promiseã®æ¬: Chapter.3 Promiseã®ãã¹ããã覧ããã ãããã®ã ããPromiseã®ãã¹ããæ£ç¢ºã«æ¸ãã®ã¯ãããªã«ç°¡åã§ã¯ãªãã ä¾ãã°mochaã ã¨ã // ééã£ããã¹ã1: // mayBeResolveWithOne() ã1以å¤ã§resolveããã¨ãã¿ã¤ã ã¢ã¦ãã¨ã©ã¼ã«ãªã it("mayBeResolveWithOne()ã¯1ã§resolveãã", function(done) { mayBeResolveWithOne().then(function(value) { as
{{#tags}}- {{label}}
{{/tags}}