build: lint for typos

This commit is contained in:
Nathaniel Landau
2023-08-29 10:43:38 -04:00
parent fea8ce4e5c
commit 64c8658c8e
11 changed files with 45 additions and 17 deletions

View File

@@ -92,7 +92,7 @@ teardown() {
}
@test "_commandExists_: false" {
run _commandExists_ "someNonexistantBinary"
run _commandExists_ "someNonexistentBinary"
assert_failure
}

View File

@@ -302,10 +302,10 @@ _testParseYAML_() {
}
@test "_sourceFile_ failure" {
run _sourceFile_ "someNonExistantFile"
run _sourceFile_ "someNonExistentFile"
assert_failure
assert_output --partial "[ fatal] Attempted to source 'someNonExistantFile'. Not found"
assert_output --partial "[ fatal] Attempted to source 'someNonExistentFile'. Not found"
}
@test "_sourceFile_ success" {

View File

@@ -80,23 +80,23 @@ teardown() {
}
@test "_execute_: Bad command" {
run _execute_ "rm nonexistant.txt"
run _execute_ "rm nonexistent.txt"
assert_failure
assert_output --partial "[warning] rm nonexistant.txt"
assert_output --partial "[warning] rm nonexistent.txt"
}
@test "_execute_ -e: Bad command" {
run _execute_ -e "rm nonexistant.txt"
run _execute_ -e "rm nonexistent.txt"
assert_failure
assert_output "error: rm nonexistant.txt"
assert_output "error: rm nonexistent.txt"
}
@test "_execute_ -p: Return 0 on bad command" {
run _execute_ -p "rm nonexistant.txt"
run _execute_ -p "rm nonexistent.txt"
assert_success
assert_output --partial "[warning] rm nonexistant.txt"
assert_output --partial "[warning] rm nonexistent.txt"
}
@test "_execute_: Good command" {