test(mocks): correctly fail git command when ref not in history

This commit is contained in:
Stephan Bönnemann 2015-09-16 09:51:26 +02:00
parent 143457e03d
commit a3f561d1d1

View File

@ -6,6 +6,7 @@ const rawCommits = [
module.exports = { module.exports = {
exec: (command, cb) => { exec: (command, cb) => {
if (/contains/.test(command)) { if (/contains/.test(command)) {
if (/notinhistory/.test(command)) return cb(new Error())
return cb(null, `whatever\nmaster\n`) return cb(null, `whatever\nmaster\n`)
} }