Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Karns <jason@karns.name>2016-09-26 16:48:18 +0300
committerJason Karns <jason@karns.name>2016-09-26 16:48:18 +0300
commit473890bbfa3899a2215b1dd8f30c3aa01a9c6607 (patch)
tree283f6253b4ca6e7c0c4352d5093fb9a1c4a0b3c5 /src
parentb5c35454122c93d8a13e7a2e873f3ecdbbe47bb3 (diff)
indentation
Diffstat (limited to 'src')
-rw-r--r--src/assert.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assert.bash b/src/assert.bash
index e1ffc4b..a52454a 100644
--- a/src/assert.bash
+++ b/src/assert.bash
@@ -222,8 +222,8 @@ assert_output() {
if (( is_mode_nonempty )); then
if [ -z "$output" ]; then
echo 'expected non-empty output, but output was empty' \
- | batslib_decorate 'no output' \
- | fail
+ | batslib_decorate 'no output' \
+ | fail
fi
elif (( is_mode_regexp )); then
if [[ '' =~ $expected ]] || (( $? == 2 )); then
@@ -337,8 +337,8 @@ refute_output() {
if (( is_mode_empty )); then
if [ -n "$output" ]; then
echo 'expected no output, but output was non-empty' \
- | batslib_decorate 'unexpected output' \
- | fail
+ | batslib_decorate 'unexpected output' \
+ | fail
fi
elif (( is_mode_regexp )); then
if [[ $output =~ $unexpected ]] || (( $? == 0 )); then