From cca9ca7636baf24167da496de848314adc55cf1d Mon Sep 17 00:00:00 2001 From: Steve King Date: Mon, 30 Jan 2023 07:36:58 +0000 Subject: [PATCH] Add test to show support for using `-- *` in a `git stash push` --- simple-git/test/unit/stash.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simple-git/test/unit/stash.spec.ts b/simple-git/test/unit/stash.spec.ts index 5f7a8c7f..b7baf26d 100644 --- a/simple-git/test/unit/stash.spec.ts +++ b/simple-git/test/unit/stash.spec.ts @@ -10,6 +10,13 @@ describe('stash', () => { callback = jest.fn(); }); + it('supports selecting all files with a star', async () => { + git.stash(['push', '--', '*']); + await closeWithSuccess(); + + assertExecutedCommands('stash', 'push', '--', '*'); + }); + it('stash working directory', async () => { const queue = git.stash(callback); await closeWithSuccess();