MCPcopy
hub / github.com/microsoft/SandDance / fail

Function fail

docs/tests/v2/es6/js/sanddance.js:8461–8469  ·  view source on GitHub ↗
(actual, expected, message, operator, stackStartFunction)

Source from the content-addressed store, hash-verified

8459// display purposes.
8460
8461function fail(actual, expected, message, operator, stackStartFunction) {
8462 throw new assert.AssertionError({
8463 message: message,
8464 actual: actual,
8465 expected: expected,
8466 operator: operator,
8467 stackStartFunction: stackStartFunction
8468 });
8469}
8470
8471// EXTENSION! allows for well behaved errors defined elsewhere.
8472assert.fail = fail;

Callers 5

okFunction · 0.85
sanddance.jsFile · 0.85
notDeepStrictEqualFunction · 0.85
_throwsFunction · 0.85
strictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected