-
-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
この書籍で扱う内容について #1
Conversation
[ Promises Overview](https://github.com/azu/Promises-book/blob/master/Ch1_WhatsPromises/promise-overview.adoc " Promises Overview")
- コールバック関数をpromisefyしてみよう | ||
- Promisesのエラーハンドリング | ||
- `then` でエラーが起きたらどうなるの? | ||
- Promisesのテストを書いてみよう |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これに、
returnPromise.then(function(value){
assert(value);
done();
});
みたいな意図しない結果になってしまうテストについても書いておきたい。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mocha 1.18.0でPromisesがサポートされたので、基本はmocha使おうでいい感じになった。
Buster.JSも同じようにthenableのテストをサポートしてる。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MDNにもcatchしわすれてるpromiseのアンチパターン書いてあった。 |
もうアウトラインは用が済んだので閉じる |
Promises bookで扱う予定の内容について書く場所。
書籍の目的
現在のアウトラインの状況は の所から見られます。
これもあるといいのでは?とか、こういうのどうするのがいいんだろ?的なのを書いたり、
pull requestするといいと思います。
後、タイトルも仮です…#7 で決まった