From 47cba343a6dbdac7bd352ba2e521d1c66ad93522 Mon Sep 17 00:00:00 2001 From: Thomas Urban Date: Sat, 22 Jun 2024 13:51:04 +0200 Subject: [PATCH] fix: CI test issues --- README.md | 2 +- src/command-parser/expand-arguments.spec.ts | 4 ++-- src/concurrently.spec.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7772a491..4830a11b 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/src/command-parser/expand-arguments.spec.ts b/src/command-parser/expand-arguments.spec.ts index cc995187..8e753e45 100644 --- a/src/command-parser/expand-arguments.spec.ts +++ b/src/command-parser/expand-arguments.spec.ts @@ -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', }); }); @@ -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', }); }); diff --git a/src/concurrently.spec.ts b/src/concurrently.spec.ts index 2dd659d2..d8fc0a9c 100644 --- a/src/concurrently.spec.ts +++ b/src/concurrently.spec.ts @@ -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({}));