Skip to content

Commit

Permalink
fix: use shell-quote@1.6.0 refs substack/shell-quote#22
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Apr 24, 2016
1 parent 5992822 commit e84d64e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 8 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e84d64e

Please sign in to comment.