MCPcopy
hub / github.com/cujojs/when / fakeRejected

Function fakeRejected

test/defer-test.js:19–25  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

17}
18
19function fakeRejected(reason) {
20 return {
21 then: function(callback, errback) {
22 return errback ? fakeResolved(errback(reason)) : fakeRejected(reason);
23 }
24 };
25}
26
27buster.testCase('when.defer', {
28

Callers 1

defer-test.jsFile · 0.85

Calls 1

fakeResolvedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…