1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 19:09:43 +00:00

Grammar check and optimization

This commit is contained in:
Tw93
2025-12-02 17:02:14 +08:00
parent bb50a345b6
commit 443b59d9c7
14 changed files with 41 additions and 28 deletions

View File

@@ -28,6 +28,7 @@ setup() {
# Test brew_has_outdated function
@test "brew_has_outdated returns 1 when brew not installed" {
# shellcheck disable=SC2329
function brew() {
return 127 # Command not found
}
@@ -39,6 +40,7 @@ setup() {
@test "brew_has_outdated checks formula by default" {
# Mock brew to simulate outdated formulas
# shellcheck disable=SC2329
function brew() {
if [[ "$1" == "outdated" && "$2" != "--cask" ]]; then
echo "package1"