Skip to content

Switch from QUnit assert.equal() to assert.strictEqual()#19795

Closed
bmish wants to merge 1 commit intoemberjs:masterfrom
bmish:assert-strict-equal
Closed

Switch from QUnit assert.equal() to assert.strictEqual()#19795
bmish wants to merge 1 commit intoemberjs:masterfrom
bmish:assert-strict-equal

Conversation

@bmish
Copy link
Contributor

@bmish bmish commented Oct 20, 2021

no-assert-equal is now a recommended rule in eslint-plugin-qunit v7. In JavaScript, we should generally use strict equality checks like assert.strictEqual.

This PR updates all references in the codebase including internal tests and blueprints used for code generation.

Related to how we are upgrading ember-cli to use eslint-plugin-qunit v7:

@bmish
Copy link
Contributor Author

bmish commented Oct 20, 2021

Can someone approve the tests to run?

@rwjblue
Copy link
Member

rwjblue commented Oct 22, 2021

Done @bmish!

@bmish bmish force-pushed the assert-strict-equal branch from 8b0725f to 0654dd0 Compare November 5, 2021 18:02
@bmish
Copy link
Contributor Author

bmish commented Nov 5, 2021

Looks like there are 104 test failures that will mostly require changing between null and undefined. This will be tedious, manual work to do so I'm going to close this for now. Updating the blueprints was already done in #19825.

@bmish bmish closed this Nov 5, 2021
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.

2 participants