-
Notifications
You must be signed in to change notification settings - Fork 61
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 rule no-pending-tests #59
Conversation
@@ -0,0 +1,41 @@ | |||
# Disallow Pending Tests (no-pending-tests) | |||
|
|||
Mocha allows specification of pending tests, which represent tests that aren't yet implemented, but are intended to be implemented eventually. These are designated like a normal mocha test or suite, but with only the first argument provided (no callback for the actual implementation). For example: `describe('unimplemented bdd suite');` |
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.
AFAIK mocha currently doesn’t support pending suites. If the second argument of describe
is missing an error will be thrown.
There is an upstream issue about this issue, but as I understand it, it hasn’t been decided if pending suites will be implemented or if the error message will be improved.
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.
Oh I see -- just added a new commit to remove the handling for those. I guess I just assumed mocha supported pending suites.
Awesome, thank you 👍 |
Implements #51