MCPcopy
hub / github.com/Experience-Monks/devtool / exitCode

Function exitCode

test/index.js:151–163  ·  view source on GitHub ↗
(msg, inputFile, expectedCode, args)

Source from the content-addressed store, hash-verified

149}
150
151function exitCode (msg, inputFile, expectedCode, args) {
152 args = args || [];
153 test(msg, function (t) {
154 t.plan(1);
155 t.timeoutAfter(4000);
156
157 var entry = [ path.resolve(__dirname, 'fixtures', inputFile) ];
158 var proc = spawn(cmd, entry.concat(args));
159 proc.on('close', function (code) {
160 t.equal(code, expectedCode, 'matches exit code');
161 });
162 });
163}

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected