1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 13:16:47 +00:00

Fix the issue with automated testing

This commit is contained in:
tw93
2026-01-30 11:06:54 +08:00
parent 87f605e9a8
commit 47ce6b0c50
2 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ setup() {
result=$(find_app_files "com.maestro.studio" "Maestro Studio")
[[ "$result" =~ ".config/maestro-studio" ]]
[[ "$result" =~ .config/maestro-studio ]]
}
@test "find_app_files detects no-space variant (MaestroStudio)" {
@@ -56,7 +56,7 @@ setup() {
result=$(find_app_files "dev.zed.Zed-Nightly" "Zed Nightly")
[[ "$result" =~ ".config/zed" ]]
[[ "$result" =~ .config/zed ]]
[[ "$result" =~ "Library/Application Support/Zed" ]]
}
@@ -73,10 +73,10 @@ setup() {
result=$(find_app_files "com.maestro.studio" "Maestro Studio")
[[ "$result" =~ ".config/maestro-studio" ]]
[[ "$result" =~ .config/maestro-studio ]]
[[ "$result" =~ "Library/Application Support/MaestroStudio" ]]
[[ "$result" =~ "Library/Application Support/Maestro-Studio" ]]
[[ "$result" =~ ".local/share/maestrostudio" ]]
[[ "$result" =~ .local/share/maestrostudio ]]
}
@test "find_app_files handles multi-word version suffix (Firefox Developer Edition)" {
@@ -85,7 +85,7 @@ setup() {
result=$(find_app_files "org.mozilla.firefoxdeveloperedition" "Firefox Developer Edition")
[[ "$result" =~ ".local/share/firefox" ]]
[[ "$result" =~ .local/share/firefox ]]
}
@test "find_app_files does not match empty app name" {