mirror of
https://github.com/tests-always-included/mo.git
synced 2025-11-19 23:34:32 +01:00
Pass shellcheck, more specs are handled, preserve function whitespace
This closes #49.
This commit is contained in:
@@ -5,14 +5,9 @@ cd "${0%/*}" || exit 1
|
||||
failFunction() {
|
||||
false
|
||||
}
|
||||
arguments=(--fail-on-function)
|
||||
returnCode=1
|
||||
|
||||
template="Fail on function? {{failFunction}}"
|
||||
expected() {
|
||||
cat <<EOF
|
||||
ERROR: Function 'failFunction' with args () failed with status code 1
|
||||
EOF
|
||||
}
|
||||
export arguments=(--fail-on-function)
|
||||
export returnCode=1
|
||||
export template="Fail on function? {{failFunction}}"
|
||||
export expected=$'ERROR: Function failed with status code 1: "failFunction"\n'
|
||||
|
||||
runTest
|
||||
|
||||
Reference in New Issue
Block a user