mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 10:06:10 +00:00
test: source brew uninstall helpers
This commit is contained in:
@@ -31,6 +31,7 @@ setup() {
|
|||||||
|
|
||||||
run bash <<EOF
|
run bash <<EOF
|
||||||
source "$PROJECT_ROOT/lib/core/common.sh"
|
source "$PROJECT_ROOT/lib/core/common.sh"
|
||||||
|
source "$PROJECT_ROOT/lib/uninstall/brew.sh"
|
||||||
|
|
||||||
# Override the function to use our test Caskroom
|
# Override the function to use our test Caskroom
|
||||||
get_brew_cask_name() {
|
get_brew_cask_name() {
|
||||||
@@ -62,6 +63,7 @@ EOF
|
|||||||
|
|
||||||
result=$(bash <<EOF
|
result=$(bash <<EOF
|
||||||
source "$PROJECT_ROOT/lib/core/common.sh"
|
source "$PROJECT_ROOT/lib/core/common.sh"
|
||||||
|
source "$PROJECT_ROOT/lib/uninstall/brew.sh"
|
||||||
# Mock brew to return nothing for this
|
# Mock brew to return nothing for this
|
||||||
brew() { return 1; }
|
brew() { return 1; }
|
||||||
export -f brew
|
export -f brew
|
||||||
|
|||||||
Reference in New Issue
Block a user