MCPcopy
hub / github.com/mathquill/mathquill / fail

Function fail

test/support/assert.js:16–20  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

14 AssertionError.prototype = new noop();
15
16 function fail(opts) {
17 if (typeof opts === 'string') opts = { message: opts };
18
19 throw new AssertionError(opts);
20 }
21
22 return {
23 ok: function(thing, message) {

Callers 3

parser.test.jsFile · 0.85
assert.jsFile · 0.85
latex.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected