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

Fix typo in t.notThrows example #1486

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

clayzermk1
Copy link
Contributor

Trivial documentation fix proposal. I think there is a typo in the example for t.notThrows. The test name is "rejects" but shouldn't a test with a notThrows assertion be checking that the promise under test resolves instead of rejects? It's confusing when compared with the example for throws directly above that has a test named "rejects" as well.

Cheers and thanks for Ava!

@sindresorhus sindresorhus changed the title Fixed typo in t.notThrows example Fix typo in t.notThrows example Aug 10, 2017
@sindresorhus sindresorhus merged commit 57f5007 into avajs:master Aug 10, 2017
@sindresorhus
Copy link
Member

You're right. Must have been a copy-paste mistake. Thanks :)

@clayzermk1 clayzermk1 deleted the notThrows-example-typo branch August 10, 2017 21:33
kevva pushed a commit that referenced this pull request Sep 13, 2017
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.

2 participants