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

Function assertRejected

test/settle-test.js:14–17  ·  view source on GitHub ↗
(s, reason)

Source from the content-addressed store, hash-verified

12}
13
14function assertRejected(s, reason) {
15 assert.equals(s.state, 'rejected');
16 assert.same(s.reason, reason);
17}
18
19buster.testCase('when.settle', {
20 'should settle empty array': function() {

Callers 1

settle-test.jsFile · 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…