Skip to content

Commit

Permalink
add tests for snatch --undo
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Nov 19, 2023
1 parent 79a50ce commit dccf9f0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/approvals/rush_snatch_dannyben_hello_undo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
snatch | dannyben hello
clone | https://github.com/dannyben/rush-repo.git
Cloning into '/root/rush-repos/snatched'...
undo | snatched:hello
Executing undo
REPO: snatched
REPO_PATH: /root/rush-repos/snatched
USER_CWD: /test
VERBOSE:
FORCE:
remove | snatched
remove | purged /root/rush-repos/snatched
1 change: 1 addition & 0 deletions test/approve
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ describe "snatch"
approve "rush snatch" || return 0
approve "rush snatch -h"
approve "rush snatch dannyben hello"
approve "rush snatch dannyben hello --undo"
approve "rush snatch dannyben hello --force --verbose"
[[ -d $dir ]] && fail "Expected directory $dir to not exist"

Expand Down

0 comments on commit dccf9f0

Please sign in to comment.