1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 12:41:46 +00:00

test: source brew uninstall helpers

This commit is contained in:
Tw93
2026-01-15 21:11:34 +08:00
parent 377f777184
commit eb717e558e

View File

@@ -31,6 +31,7 @@ setup() {
run bash <<EOF
source "$PROJECT_ROOT/lib/core/common.sh"
source "$PROJECT_ROOT/lib/uninstall/brew.sh"
# Override the function to use our test Caskroom
get_brew_cask_name() {
@@ -62,6 +63,7 @@ EOF
result=$(bash <<EOF
source "$PROJECT_ROOT/lib/core/common.sh"
source "$PROJECT_ROOT/lib/uninstall/brew.sh"
# Mock brew to return nothing for this
brew() { return 1; }
export -f brew