diff --git a/index.test.js b/index.test.js index c596113..31ed4c0 100644 --- a/index.test.js +++ b/index.test.js @@ -14,7 +14,8 @@ const defaultInputs = { // Creates a randomly named git repository and returns a function to execute commands in it const createTestRepo = (inputs) => { const repoDirectory = `/tmp/test${Math.random().toString(36).substring(2, 15)}`; - cp.execSync(`mkdir ${repoDirectory} && git init ${repoDirectory}`); + cp.execSync(`mkdir ${repoDirectory}`); + cp.execSync(`git init ${repoDirectory}`); const run = (command, extraInputs) => { const allInputs = Object.assign({ ...defaultInputs }, inputs, extraInputs);