MCPcopy Index your code
hub / github.com/restify/node-restify / next

Function next

test/plugins/cpuUsageThrottle.test.js:33–37  ·  view source on GitHub ↗
(cont)

Source from the content-addressed store, hash-verified

31 var opts = { limit: 0, interval: 500 };
32 plugin = cpuUsageThrottle(opts);
33 function next(cont) {
34 assert(cont instanceof Error, 'Should call next with error');
35 assert.equal(cont.statusCode, 503, 'Defaults to 503 status');
36 done();
37 }
38 plugin({}, {}, next);
39 });
40

Callers 15

context.test.jsFile · 0.70
handlerFactoryFunction · 0.70
query.test.jsFile · 0.70
plugins.test.jsFile · 0.70
multipart.test.jsFile · 0.70
setupClientServerFunction · 0.70

Calls 1

doneFunction · 0.85

Tested by

no test coverage detected