Skip to content

Commit

Permalink
format test output style
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Jul 13, 2024
1 parent 31d6289 commit c363673
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
11 changes: 2 additions & 9 deletions test/approve
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
#!/usr/bin/env bash

cd test > /dev/null
export APPROVALS_DIR="$PWD/approvals"
source approvals.bash

basedir="$PWD"
source ../fuzzycd
export FUZZYCD_HISTORY_FILE="$PWD/tmp/histfile"
rm -f "$FUZZYCD_HISTORY_FILE"
mkdir -p tmp/one/two
mkdir -p "$HOME/.fuzzycd"
source test_helper.bash


context "when the shell is non-interactive"
describe "cd"
Expand Down
17 changes: 17 additions & 0 deletions test/test_helper.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export APPROVALS_DIR="$PWD/approvals"
source approvals.bash

context_string="\n$(bold "%s")"
describe_string=" %s"
it_string=" %s"
fail_string=" $(red "✗ %s")"
pass_string=" $(green "✓ %s")"
exit_success_string="\n$(green_bold "%s finished successfully")"
exit_failed_string="$(red_bold "%s finished with errors")"

basedir="$PWD"
source ../fuzzycd
export FUZZYCD_HISTORY_FILE="$PWD/tmp/histfile"
rm -f "$FUZZYCD_HISTORY_FILE"
mkdir -p tmp/one/two
mkdir -p "$HOME/.fuzzycd"

0 comments on commit c363673

Please sign in to comment.