-
-
Save TheSavior/040fcbe5adfc8b6ce16aaffddfb80c72 to your computer and use it in GitHub Desktop.
Throw when chai.assert.equal is used
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chai.assert.equal = function() { | |
throw new chai.AssertionError("Chai's assert.equal function does == instead of ===. Use assert.strictEqual instead"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment