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

Suggest t.throws for things like catch, exception, error. Also other synonyms? #177

Open
forivall opened this issue Jun 23, 2017 · 3 comments

Comments

@forivall
Copy link

forivall commented Jun 23, 2017

Just an idea I'm throwing out: it would be nice to add in suggestions for synonyms and typos when someone can't remember the name of an assertion correctly. In my case just now it was that i couldn't remember throws, but it would be nice for ok -> pass, equals -> is, etc.

@sindresorhus
Copy link
Member

Good idea!

@sindresorhus
Copy link
Member

sindresorhus commented Jun 23, 2017

ok -> pass

This is not correct though. Should be: ok -> truthy At least that's how ok works in many other test runners.

@sindresorhus
Copy link
Member

sindresorhus commented Jun 23, 2017

For a list of things to warn about, see the list of assertions here (at least those who don't match our names) and their aliases: https://github.com/substack/tape#tokvalue-msg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants