From e594638a96eb0398299240bd91538447db09001f Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Mon, 19 Nov 2018 18:22:10 -0500 Subject: [PATCH] test: prefer array spread --- test/helpers/git-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/git-utils.js b/test/helpers/git-utils.js index fedbb6a0..38b464bc 100644 --- a/test/helpers/git-utils.js +++ b/test/helpers/git-utils.js @@ -26,7 +26,7 @@ import getStream from 'get-stream'; export async function gitRepo(withRemote, branch = 'master') { let cwd = tempy.directory(); - await execa('git', ['init'].concat(withRemote ? ['--bare'] : []), {cwd}); + await execa('git', ['init', ...(withRemote ? ['--bare'] : [])], {cwd}); const repositoryUrl = fileUrl(cwd); if (withRemote) {