From e84d64e418a606c3e9db4d6f10be6a0bfed0f6c6 Mon Sep 17 00:00:00 2001 From: 59naga Date: Sun, 24 Apr 2016 16:19:27 +0900 Subject: [PATCH] fix: use `shell-quote@1.6.0` refs substack/shell-quote#22 --- package.json | 2 +- test/index.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7809e74..653e815 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "dependencies": { "npm-run-path": "^1.0.0", "semver": "^5.1.0", - "shell-quote": "^1.5.0", + "shell-quote": "^1.6.0", "cross-spawn": "^2.2.2" }, "scripts": { diff --git a/test/index.js b/test/index.js index f7b3e8c..16e8230 100644 --- a/test/index.js +++ b/test/index.js @@ -19,6 +19,14 @@ test('should be able to run the bin', async (t) => { t.true(code === 0); }); +// @see https://github.com/substack/node-shell-quote/pull/22 +test('should be able to run the bin with comment', async (t) => { + const child = npmRunScript('eslint foo#comment', { stdio: 'ignore' }); + const code = await result(child); + + t.true(code === 0); +}); + test('shell command should spawn in as much as possible', async (t) => { const child = npmRunScript('eslint && exit 59', { stdio: 'ignore' }); const code = await result(child);