test(mocks): correctly fail git command when ref not in history
This commit is contained in:
parent
143457e03d
commit
a3f561d1d1
@ -6,6 +6,7 @@ const rawCommits = [
|
||||
module.exports = {
|
||||
exec: (command, cb) => {
|
||||
if (/contains/.test(command)) {
|
||||
if (/notinhistory/.test(command)) return cb(new Error())
|
||||
return cb(null, `whatever\nmaster\n`)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user