mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 10:33:30 +00:00
update tests
This commit is contained in:
@@ -45,34 +45,6 @@ setup() {
|
|||||||
[[ "$output" == *"Unknown command: unknown-command"* ]]
|
[[ "$output" == *"Unknown command: unknown-command"* ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "clean.sh --help shows usage details" {
|
|
||||||
run env HOME="$HOME" "$PROJECT_ROOT/bin/clean.sh" --help
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[[ "$output" == *"Mole - Deeper system cleanup"* ]]
|
|
||||||
[[ "$output" == *"--dry-run"* ]]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "uninstall.sh --help highlights controls" {
|
|
||||||
run env HOME="$HOME" "$PROJECT_ROOT/bin/uninstall.sh" --help
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[[ "$output" == *"Usage: mole uninstall"* ]]
|
|
||||||
[[ "$output" == *"Keyboard Controls"* ]]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "analyze.sh --help outlines explorer features" {
|
|
||||||
run env HOME="$HOME" "$PROJECT_ROOT/bin/analyze.sh" --help
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[[ "$output" == *"Interactive disk space explorer"* ]]
|
|
||||||
[[ "$output" == *"mole analyze"* ]]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "touchid --help describes configuration options" {
|
|
||||||
run env HOME="$HOME" "$PROJECT_ROOT/mole" touchid --help
|
|
||||||
[ "$status" -eq 0 ]
|
|
||||||
[[ "$output" == *"Touch ID"* ]]
|
|
||||||
[[ "$output" == *"mo touchid enable"* ]]
|
|
||||||
}
|
|
||||||
|
|
||||||
@test "touchid status reports current configuration" {
|
@test "touchid status reports current configuration" {
|
||||||
run env HOME="$HOME" "$PROJECT_ROOT/mole" touchid status
|
run env HOME="$HOME" "$PROJECT_ROOT/mole" touchid status
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user