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

Function assertFulfilled

test/settle-test.js:9–12  ·  view source on GitHub ↗
(s, value)

Source from the content-addressed store, hash-verified

7var sentinel = {};
8
9function assertFulfilled(s, value) {
10 assert.equals(s.state, 'fulfilled');
11 assert.same(s.value, value);
12}
13
14function assertRejected(s, reason) {
15 assert.equals(s.state, 'rejected');

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…