mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 14:13:45 -05:00
build: lint for typos
This commit is contained in:
@@ -92,7 +92,7 @@ teardown() {
|
||||
}
|
||||
|
||||
@test "_commandExists_: false" {
|
||||
run _commandExists_ "someNonexistantBinary"
|
||||
run _commandExists_ "someNonexistentBinary"
|
||||
assert_failure
|
||||
}
|
||||
|
||||
|
||||
@@ -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" {
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user