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

Function assertIsPromise

test/node-test.js:12–15  ·  view source on GitHub ↗
(something)

Source from the content-addressed store, hash-verified

10var other = { value: 'other' };
11
12function assertIsPromise(something) {
13 var message = 'Object is not a promise';
14 buster.assert(when.isPromiseLike(something), message);
15}
16
17buster.testCase('when/node', {
18 'apply': {

Callers 1

node-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…