MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / routeLateFailure

Function routeLateFailure

ui/plugins/ui/jasmine/jasmine.js:1391–1409  ·  view source on GitHub ↗
(expectationResult)

Source from the content-addressed store, hash-verified

1389 }
1390
1391 function routeLateFailure(expectationResult) {
1392 // Report the result on the nearest ancestor suite that hasn't already
1393 // been reported done.
1394 for (let r = runner.currentRunable(); r; r = r.parentSuite) {
1395 if (!r.reportedDone) {
1396 if (r === topSuite) {
1397 expectationResult.globalErrorType = "lateError"
1398 }
1399
1400 r.result.failedExpectations.push(expectationResult)
1401 return
1402 }
1403 }
1404
1405 // If we get here, all results have been reported and there's nothing we
1406 // can do except log the result and hope the user sees it.
1407 console.error("Jasmine received a result after the suite finished:")
1408 console.error(expectationResult)
1409 }
1410
1411 const asyncExpectationFactory = function(actual, spec, runableType) {
1412 return j$.Expectation.asyncFactory({

Callers 1

recordLateErrorFunction · 0.85

Calls 2

currentRunableMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected