We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f51ad commit 532e20cCopy full SHA for 532e20c
tests/do-remove.bats
@@ -56,6 +56,23 @@ load 'util/init.sh'
56
assert [ ! -d "$BPM_PACKAGES_PATH/github.com/$pkg" ]
57
}
58
59
+@test "fails to remove package directory with wrong site name" {
60
+ local site='github.com'
61
+ local pkg='username/package'
62
+
63
+ test_util.setup_pkg "$pkg"; {
64
+ touch 'bpm.toml'
65
+ touch 'file.sh'
66
+ }; test_util.finish_pkg
67
+ test_util.fake_install "$pkg"
68
69
+ assert [ -d "$BPM_PACKAGES_PATH/github.com/$pkg" ]
70
71
+ run do-remove "gitlab.com/$pkg"
72
73
+ assert_failure
74
+}
75
76
@test "properly removes parent of package directory, if it is empty" {
77
local site='github.com'
78
local pkg='username/package'
0 commit comments