Skip to content

Commit

Permalink
Add test to show support for using -- * in a git stash push
Browse files Browse the repository at this point in the history
  • Loading branch information
steveukx committed Jan 30, 2023
1 parent 2ffbf42 commit cca9ca7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions simple-git/test/unit/stash.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cca9ca7

Please sign in to comment.