1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 20:15:07 +00:00

test: fix update and cache cleanup cases

This commit is contained in:
tw93
2026-03-07 20:03:11 +08:00
parent 300aded07b
commit d189e1b84f
2 changed files with 4 additions and 3 deletions

View File

@@ -600,7 +600,7 @@ EOF
@test "get_homebrew_latest_version prefers brew outdated verbose target version" {
run bash --noprofile --norc <<'EOF'
set -euo pipefail
MOLE_SKIP_MAIN=1 source "$PROJECT_ROOT/mole"
MOLE_TEST_MODE=1 MOLE_SKIP_MAIN=1 source "$PROJECT_ROOT/mole"
brew() {
if [[ "${1:-}" == "outdated" ]]; then
@@ -625,7 +625,7 @@ EOF
@test "get_homebrew_latest_version parses brew info fallback with heading prefix" {
run bash --noprofile --norc <<'EOF'
set -euo pipefail
MOLE_SKIP_MAIN=1 source "$PROJECT_ROOT/mole"
MOLE_TEST_MODE=1 MOLE_SKIP_MAIN=1 source "$PROJECT_ROOT/mole"
brew() {
if [[ "${1:-}" == "outdated" ]]; then