Skip to content

Commit cca9ca7

Browse files
committed
Add test to show support for using -- * in a git stash push
1 parent 2ffbf42 commit cca9ca7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

simple-git/test/unit/stash.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ describe('stash', () => {
1010
callback = jest.fn();
1111
});
1212

13+
it('supports selecting all files with a star', async () => {
14+
git.stash(['push', '--', '*']);
15+
await closeWithSuccess();
16+
17+
assertExecutedCommands('stash', 'push', '--', '*');
18+
});
19+
1320
it('stash working directory', async () => {
1421
const queue = git.stash(callback);
1522
await closeWithSuccess();

0 commit comments

Comments
 (0)