in Tasks/codepush-release-cordova/test.js [33:44]
function stubExecToFailOnCommandType(commandType) {
// If commandType not specified, all will succeed.
var execStub = sinon.stub(global, "exec").callsFake(function(command) {
return {
code: !commandType || command.indexOf(commandType) == -1 ? 0 : 1,
output: command
}
});
spies.push(global.exec);
return execStub;
}