Create a gist now

Instantly share code, notes, and snippets.

@TheSavior /chai_throw.js Secret
Created Aug 22, 2016

What would you like to do?
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