Skip to content

Commit

Permalink
fix: CI test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
soletan committed Jun 22, 2024
1 parent 5cea322 commit 47cba34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Examples:
- Passthrough all additional arguments combined into one argument via '{*}' placeholder
$ concurrently -P "echo {*}" -- foo bar
# Results in: echo 'foo bar'
# Results in something like: echo 'foo bar'
For more details, visit https://github.com/open-cli-tools/concurrently
```
Expand Down
4 changes: 2 additions & 2 deletions src/command-parser/expand-arguments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ it('argument placeholder is replaced and quoted properly', () => {
const commandInfo = createCommandInfo('echo {1}');
expect(parser.parse(commandInfo)).toEqual({
...commandInfo,
command: isWin32 ? 'echo "foo bar"' : "echo 'foo bar'",
command: isWin32 ? 'echo "foo bar"' : 'echo foo\\ bar',
});
});

Expand Down Expand Up @@ -66,7 +66,7 @@ it('combined arguments placeholder is replaced', () => {
const commandInfo = createCommandInfo('echo {*}');
expect(parser.parse(commandInfo)).toEqual({
...commandInfo,
command: isWin32 ? 'echo "foo bar"' : "echo 'foo bar'",
command: isWin32 ? 'echo "foo bar"' : 'echo foo\\ bar',
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/concurrently.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ it('argument placeholders are properly replaced when additional arguments are pa
expect(spawn).toHaveBeenCalledWith('echo foo', expect.objectContaining({}));
expect(spawn).toHaveBeenCalledWith('echo foo bar', expect.objectContaining({}));
expect(spawn).toHaveBeenCalledWith(
isWin32 ? 'echo "foo bar"' : "echo 'foo bar'",
isWin32 ? 'echo "foo bar"' : 'echo foo\\ bar',
expect.objectContaining({}),
);
expect(spawn).toHaveBeenCalledWith('echo {@}', expect.objectContaining({}));
Expand Down

0 comments on commit 47cba34

Please sign in to comment.