From dccf9f0d4f48868e3bc0292b557663f237da24e6 Mon Sep 17 00:00:00 2001 From: Danny Ben Shitrit Date: Sun, 19 Nov 2023 12:17:57 +0000 Subject: [PATCH] add tests for snatch --undo --- test/approvals/rush_snatch_dannyben_hello_undo | 12 ++++++++++++ test/approve | 1 + 2 files changed, 13 insertions(+) create mode 100644 test/approvals/rush_snatch_dannyben_hello_undo diff --git a/test/approvals/rush_snatch_dannyben_hello_undo b/test/approvals/rush_snatch_dannyben_hello_undo new file mode 100644 index 0000000..70344e2 --- /dev/null +++ b/test/approvals/rush_snatch_dannyben_hello_undo @@ -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 diff --git a/test/approve b/test/approve index 5f72188..c76f1b5 100755 --- a/test/approve +++ b/test/approve @@ -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"