We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The no-negated-ok rule should not warn on ok(!something). This is because there is no global notOk assertion.
no-negated-ok
ok(!something)
notOk
There is also no point in warning for global notOk either, since that isn't a real assertion.
In summary, this rule should only really be enforced for MemberExpression assert.ok and assert.notOk.
assert.ok
assert.notOk
The text was updated successfully, but these errors were encountered:
59e5cb8
No branches or pull requests
The
no-negated-ok
rule should not warn onok(!something)
. This is because there is no globalnotOk
assertion.There is also no point in warning for global
notOk
either, since that isn't a real assertion.In summary, this rule should only really be enforced for MemberExpression
assert.ok
andassert.notOk
.The text was updated successfully, but these errors were encountered: