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

Function assertCycle

test/cycle-test.js:6–10  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

4var CorePromise = require('../lib/Promise');
5
6function assertCycle(p) {
7 return p.then(buster.referee.fail, function(e) {
8 assert(e instanceof TypeError);
9 });
10}
11
12buster.testCase('cycle detection', {
13

Callers 1

cycle-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…