mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 10:35:36 +00:00
22 lines
580 B
Bash
Executable file
22 lines
580 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# shellcheck disable=SC1091
|
|
|
|
source "$(dirname "$0")/../utils/utils.sh"
|
|
|
|
# Disable the exiterr
|
|
set +e
|
|
|
|
function oneTimeSetUp(){
|
|
setUpUnitTests
|
|
}
|
|
|
|
function test_check_no_tabs(){
|
|
assertCommandFailOnStatus 1 grep -R "$(printf '\t')" "$(dirname "$0")"/../../bin/*
|
|
assertEquals "" "$(cat "$STDOUTF")"
|
|
assertEquals "" "$(cat "$STDERRF")"
|
|
assertCommandFailOnStatus 1 grep -R "$(printf '\t')" "$(dirname "$0")"/../../lib/*
|
|
assertEquals "" "$(cat "$STDOUTF")"
|
|
assertEquals "" "$(cat "$STDERRF")"
|
|
}
|
|
|
|
source "$(dirname "$0")"/../utils/shunit2
|