-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add check for no argumetn in callback in describes #17
Conversation
This is looking good. Thanks Simen. A few points:
If you could address those and squash the commit, that'd be awesome. Thanks for you contributions. |
I went with I completely forgot about the docs, sorry about that 😆 Should be GTG now. |
@tlvince I added a check for EDIT: And |
This rule asserts that the callback of a suite does not take any arguments Fixes #14
|
||
var eslintTester = new RuleTester(); | ||
|
||
eslintTester.run('describe-with-done', rule, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be overkill for the tests, I just added every sample I put in the docs
Add check for no argument in callback in describes
Excellent! 👍 |
Great! thanks! 👍 |
Fixes #14
Seems like a low-hanging fruit 😄
I've never written a rule for eslint before, so this might be wrongly implemented