Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

lint runner.js

Christopher Hiller0f4e5a16d229
diff --git a/lib/runner.js b/lib/runner.js
index 353ff0cc..51bd3c54 100644
--- a/lib/runner.js
+++ b/lib/runner.js
@@ -210,7 +210,7 @@ Runner.prototype.fail = function(test, err) {
++this.failures;
test.state = 'failed';
- if (!(err instanceof Error || err && typeof err.message == 'string')) {
+ if (!(err instanceof Error || err && typeof err.message === 'string')) {
err = new Error('the ' + type(err) + ' ' + stringify(err) + ' was thrown, throw an Error :)');
}