MCPcopy Index your code
hub / github.com/prototypejs/prototype / fail

Function fail

test/unit/static/js/proclaim.js:316–324  ·  view source on GitHub ↗
(actual, expected, message, operator, stackStartFunction)

Source from the content-addressed store, hash-verified

314
315 // Fail a test
316 function fail (actual, expected, message, operator, stackStartFunction) {
317 throw new AssertionError({
318 message: message,
319 actual: actual,
320 expected: expected,
321 operator: operator,
322 stackStartFunction: stackStartFunction
323 });
324 }
325
326 // Expose error handling tools
327 proclaim.AssertionError = AssertionError;

Callers 2

okFunction · 0.70
proclaim.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected