From 800ea493f76c983a6bddca7dd81c1cb4a0d33650 Mon Sep 17 00:00:00 2001 From: Paul Hatcherian <1835615+PaulHatch@users.noreply.github.com> Date: Tue, 6 Oct 2020 08:40:21 -0400 Subject: [PATCH] Split commands so that tests can run on Windows --- index.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);