Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

jamestalmage
Copy link
Contributor

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.

@jamestalmage jamestalmage force-pushed the when-to-use-plan branch 2 times, most recently from 5e4e0bf to 654bc1c Compare January 30, 2016 06:03
@@ -0,0 +1,124 @@
# Using t.plan in AVA
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Assertion planning?

@sindresorhus
Copy link
Member

Very good! Can you add it to the Recipe section in the readme?


```js
test(t => {
t.plan(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t.plan(2)

@jamestalmage
Copy link
Contributor Author

I'm not understanding the last two comments.

@jamestalmage
Copy link
Contributor Author

nevermind - GH wasn't showing them inlined. I see what you are saying now.

@SamVerschueren
Copy link
Contributor

Very nice James!

@jamestalmage
Copy link
Contributor Author

Can you make the title the same as this?

I think I made all the changes you asked for. Make sure I didn't get ⬆️ backwards though.

@jamestalmage
Copy link
Contributor Author

just saw one more typo

@jamestalmage
Copy link
Contributor Author

fixed.

@sindresorhus
Copy link
Member

LGTM

@SamVerschueren
Copy link
Contributor

👍

sindresorhus pushed a commit that referenced this pull request Feb 1, 2016
@jamestalmage jamestalmage deleted the when-to-use-plan branch February 1, 2016 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants