From a3f561d1d1afae78bcb97648e3858430b6aebeba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Wed, 16 Sep 2015 09:51:26 +0200 Subject: [PATCH] test(mocks): correctly fail git command when ref not in history --- test/mocks/child-process.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/mocks/child-process.js b/test/mocks/child-process.js index ff86eb0b..f1281b6a 100644 --- a/test/mocks/child-process.js +++ b/test/mocks/child-process.js @@ -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`) }