We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 127f6f8 commit cb0d230Copy full SHA for cb0d230
1 file changed
src/harness/harness.ts
@@ -32,6 +32,9 @@
32
// this will work in the browser via browserify
33
var _chai: typeof chai = require("chai");
34
var assert: typeof _chai.assert = _chai.assert;
35
+// chai's builtin `assert.isFalse` is featureful but slow - we don't use those features,
36
+// so we'll just overwrite it as an alterative to migrating a bunch of code off of chai
37
+assert.isFalse = (expr, msg) => { if (expr as any as boolean !== false) throw new Error(msg); };
38
declare var __dirname: string; // Node-specific
39
var global: NodeJS.Global = <any>Function("return this").call(undefined);
40
0 commit comments