Skip to content

Commit

Permalink
Merge pull request #890 from steveukx/feat/stash-push-star
Browse files Browse the repository at this point in the history
Add test to show support for using `-- *` in a `git stash push`
  • Loading branch information
steveukx authored Jan 30, 2023
2 parents 2ffbf42 + cca9ca7 commit 0d44e0a
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 0d44e0a

Please sign in to comment.