File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,9 @@ function snapshot::match_with_placeholder() {
3434 fi
3535}
3636
37- # Remove progress bar output from a given string. Progress bar sequences are
38- # wrapped between ESC7 and ESC8 control codes when a TTY is present.
39- function snapshot::strip_progress_line() {
40- local input=" $1 "
41- echo -n " $input " | sed $' s/\x1b 7.*\x1b 8//'
42- }
43-
4437function assert_match_snapshot() {
4538 local actual
4639 actual=$( echo -n " $1 " | tr -d ' \r' )
47- actual=$( snapshot::strip_progress_line " $actual " )
4840 local directory
4941 directory=" ./$( dirname " ${BASH_SOURCE[1]} " ) /snapshots"
5042 local test_file
@@ -81,7 +73,6 @@ function assert_match_snapshot() {
8173function assert_match_snapshot_ignore_colors() {
8274 local actual
8375 actual=$( echo -n " $1 " | sed -r ' s/\x1B\[[0-9;]*[mK]//g' | tr -d ' \r' )
84- actual=$( snapshot::strip_progress_line " $actual " )
8576
8677 local directory
8778 directory=" ./$( dirname " ${BASH_SOURCE[1]} " ) /snapshots"
Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ _DEFAULT_VERBOSE="false"
3030_DEFAULT_BENCH_MODE=" false"
3131_DEFAULT_PROGRESS_BAR=" false"
3232
33- # Controls if the progress bar should render during execution
34- _PROGRESS_ENABLED=true
35-
3633: " ${BASHUNIT_PARALLEL_RUN:= ${PARALLEL_RUN:= $_DEFAULT_PARALLEL_RUN } } "
3734: " ${BASHUNIT_SHOW_HEADER:= ${SHOW_HEADER:= $_DEFAULT_SHOW_HEADER } } "
3835: " ${BASHUNIT_HEADER_ASCII_ART:= ${HEADER_ASCII_ART:= $_DEFAULT_HEADER_ASCII_ART } } "
You can’t perform that action at this time.
0 commit comments