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

Always use strictEqual in tests #2598

Merged
merged 1 commit into from
Oct 2, 2016
Merged

Conversation

captbaritone
Copy link
Collaborator

@captbaritone captbaritone commented Oct 2, 2016

By switching all assertions to use strictEqual rather than equal I was able to discover three worthwhile improvements to our tests:

I think it's a good idea to have our tests generally prefer the more explicit: strictEqual. Not only could it help avoid some subtle bug going unnoticed, but it also gives the reader of the test suite a more concrete description of the expected behavior.

At some point, after we've upgraded to a newer version of ESLint, we might even consider enableing the rule qunit/no-assert-equal (cc @platinumazure)

By switching all assertions to use `strictEqual` rather than `equal`
I was able to discover three worthwhile improvements to our tests:

* jashkenas#2597
* jashkenas#2596
* jashkenas#2595

I think it's a good idea to have our tests generally prefer the more
explicit: `strictEqual`. Not only could it help avoid some subtle bug
going unnoticed, but it also gives the reader of the test suite a more
concrete description of the expected behavior.
@coveralls
Copy link

coveralls commented Oct 2, 2016

Coverage Status

Coverage remained the same at 96.863% when pulling 9b2c36d on captbaritone:strict into 8485874 on jashkenas:master.

@megawac
Copy link
Collaborator

megawac commented Oct 2, 2016

👍 good stuff!

@megawac megawac merged commit d8593bc into jashkenas:master Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants