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

Fix false positive with unrelated equal function in no-assert-equal rule #183

Merged
merged 1 commit into from
May 17, 2021

Conversation

bmish
Copy link
Member

@bmish bmish commented May 6, 2021

The rule should disallow the global equal under the assumption that this is the QUnit assertion. But a custom equal function that is locally defined or imported should be ignored.

Fixes #182.

@coveralls
Copy link

coveralls commented May 6, 2021

Coverage Status

Coverage remained the same at 100.0% when pulling a01b31c on bmish:no-assert-equal-global-fix into ce4803f on platinumazure:master.

@bmish bmish changed the title Fix global equal() check in no-assert-equal rule Fix false positive with unrelated equal function in no-assert-equal rule May 6, 2021
Copy link
Collaborator

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@platinumazure platinumazure merged commit 9fee369 into qunitjs:master May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

False positive from no-assert-equal rule with unrelated function
3 participants