-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
recipe: when to use t.plan #492
Conversation
5e4e0bf
to
654bc1c
Compare
@@ -0,0 +1,124 @@ | |||
# Using t.plan in AVA |
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.
# Assertion planning
?
Very good! Can you add it to the Recipe section in the readme? |
|
||
```js | ||
test(t => { | ||
t.plan(1); |
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.
t.plan(2)
654bc1c
to
9045f2a
Compare
I'm not understanding the last two comments. |
nevermind - GH wasn't showing them inlined. I see what you are saying now. |
82d18ad
to
36960f0
Compare
Very nice James! |
I think I made all the changes you asked for. Make sure I didn't get ⬆️ backwards though. |
just saw one more typo |
36960f0
to
cd80387
Compare
fixed. |
LGTM |
👍 |
Reference: jfmengels/mocha-vs-ava-performance#1 (comment)
Reviewers: @sindresorhus @vdemedes @SamVerschueren @kevva, et. all.
I'm only pretending to be an authority on the topic, critiques welcome.