Skip to content

Instantly share code, notes, and snippets.

@TheSavior
Created August 22, 2016 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheSavior/040fcbe5adfc8b6ce16aaffddfb80c72 to your computer and use it in GitHub Desktop.
Save TheSavior/040fcbe5adfc8b6ce16aaffddfb80c72 to your computer and use it in GitHub Desktop.
Throw when chai.assert.equal is used
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