From 3da97c57c6969e0d95886f40736708c693987845 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 5 Jan 2026 17:43:25 +0800 Subject: [PATCH] test: mock clean_ds_store_tree and UI functions in clean_misc.bats --- tests/clean_misc.bats | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/clean_misc.bats b/tests/clean_misc.bats index 1e7054e..ede762f 100644 --- a/tests/clean_misc.bats +++ b/tests/clean_misc.bats @@ -95,6 +95,10 @@ set -euo pipefail source "$PROJECT_ROOT/lib/core/common.sh" source "$PROJECT_ROOT/lib/clean/user.sh" run_with_timeout() { return 1; } +# Mock missing dependencies and UI to ensure test passes regardless of volumes +clean_ds_store_tree() { :; } +start_section_spinner() { :; } +stop_section_spinner() { :; } scan_external_volumes EOF