mirror of
https://github.com/tw93/Mole.git
synced 2026-02-10 06:09:16 +00:00
fix(uninstall): detect Maestro Studio .mobiledev and add regression test (#421)
This commit is contained in:
@@ -48,6 +48,15 @@ setup() {
|
||||
[[ "$result" =~ "Library/Application Support/MaestroStudio" ]]
|
||||
}
|
||||
|
||||
@test "find_app_files detects Maestro Studio auth directory (.mobiledev)" {
|
||||
mkdir -p "$HOME/.mobiledev"
|
||||
echo "token" > "$HOME/.mobiledev/authtoken"
|
||||
|
||||
result=$(find_app_files "com.maestro.studio" "Maestro Studio")
|
||||
|
||||
[[ "$result" =~ .mobiledev ]]
|
||||
}
|
||||
|
||||
@test "find_app_files extracts base name from version suffix (Zed Nightly -> zed)" {
|
||||
mkdir -p "$HOME/.config/zed"
|
||||
mkdir -p "$HOME/Library/Application Support/Zed"
|
||||
|
||||
Reference in New Issue
Block a user