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

New rule prefer-to-contain #100

Closed
kentor opened this issue Mar 10, 2018 · 2 comments · Fixed by #174 or severest/retrobot#245
Closed

New rule prefer-to-contain #100

kentor opened this issue Mar 10, 2018 · 2 comments · Fixed by #174 or severest/retrobot#245

Comments

@kentor
Copy link

kentor commented Mar 10, 2018

Prefer expect(a).toContain(b) rather than expect(a.includes(b)).toBe(true).

The error messages are often times better.

This rule is similar to prefer-to-have-length.

@thymikee
Copy link
Member

Seems like a nice rule to add!

@SimenB
Copy link
Member

SimenB commented Oct 14, 2018

🎉 This issue has been resolved in version 21.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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