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

Rule proposal: enforce using (or not using) descriptions with assertions #299

Closed
ehmicky opened this issue Apr 5, 2020 · 2 comments
Closed

Comments

@ehmicky
Copy link

ehmicky commented Apr 5, 2020

Assertions can optionally specify a description:

t.is(value, true, 'description')

It would be nice to add a rule to enforce that either:

  • all assertions have a description, for the developers that think that those provide with better error messages
  • no assertions have a description, for the developers that think those are not useful
@sindresorhus
Copy link
Member

@ehmicky
Copy link
Author

ehmicky commented Apr 5, 2020

Oh I did look at the list of rules, but somehow I missed this. Great! Thanks a lot for pointing it out.

@ehmicky ehmicky closed this as completed Apr 5, 2020
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

No branches or pull requests

2 participants