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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user