MCPcopy Index your code
hub / github.com/caolan/nodeunit / fail

Function fail

lib/assert.js:112–120  ·  view source on GitHub ↗
(actual, expected, message, operator, stackStartFunction)

Source from the content-addressed store, hash-verified

110// display purposes.
111
112function fail(actual, expected, message, operator, stackStartFunction) {
113 throw new assert.AssertionError({
114 message: message,
115 actual: actual,
116 expected: expected,
117 operator: operator,
118 stackStartFunction: stackStartFunction
119 });
120}
121
122// EXTENSION! allows for well behaved errors defined elsewhere.
123assert.fail = fail;

Callers 2

assert.jsFile · 0.70
_throwsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…