Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosMasterOfAllTime committed Oct 28, 2022
1 parent d91cccd commit 38d4060
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/goenv-init.bats
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ OUT
assert_line 0 'export GOENV_SHELL=bash'
assert_line 1 "export GOENV_ROOT=$GOENV_ROOT"
assert_line 2 'if [ "${PATH#*$GOENV_ROOT/shims}" = "${PATH}" ]; then'
assert_line 3 ' export PATH="$GOENV_ROOT/shims:$PATH"'
assert_line 3 ' export PATH="$PATH:$GOENV_ROOT/shims"'
assert_line 4 'fi'
assert_line 5 "source '$BATS_TEST_DIRNAME/../libexec/../completions/goenv.bash'"
assert_line 6 'command goenv rehash 2>/dev/null'
Expand All @@ -168,7 +168,7 @@ OUT
assert_line 0 'export GOENV_SHELL=zsh'
assert_line 1 "export GOENV_ROOT=$GOENV_ROOT"
assert_line 2 'if [ "${PATH#*$GOENV_ROOT/shims}" = "${PATH}" ]; then'
assert_line 3 ' export PATH="$GOENV_ROOT/shims:$PATH"'
assert_line 3 ' export PATH="$PATH:$GOENV_ROOT/shims"'
assert_line 4 'fi'
assert_line 5 "source '$BATS_TEST_DIRNAME/../libexec/../completions/goenv.zsh'"
assert_line 6 'command goenv rehash 2>/dev/null'
Expand All @@ -195,7 +195,7 @@ OUT
assert_line 0 'set -gx GOENV_SHELL fish'
assert_line 1 "set -gx GOENV_ROOT $GOENV_ROOT"
assert_line 2 'if not contains $GOENV_ROOT/shims $PATH'
assert_line 3 ' set -gx PATH $GOENV_ROOT/shims $PATH'
assert_line 3 ' set -gx PATH $PATH $GOENV_ROOT/shims'
assert_line 4 'end'
assert_line 5 "source '$BATS_TEST_DIRNAME/../libexec/../completions/goenv.fish'"
assert_line 6 'command goenv rehash 2>/dev/null'
Expand All @@ -219,7 +219,7 @@ OUT
assert_line 0 'export GOENV_SHELL=ksh'
assert_line 1 "export GOENV_ROOT=$GOENV_ROOT"
assert_line 2 'if [ "${PATH#*$GOENV_ROOT/shims}" = "${PATH}" ]; then'
assert_line 3 ' export PATH="$GOENV_ROOT/shims:$PATH"'
assert_line 3 ' export PATH="$PATH:$GOENV_ROOT/shims"'
assert_line 4 'fi'
assert_line 5 'command goenv rehash 2>/dev/null'
assert_line 6 'function goenv {'
Expand All @@ -245,7 +245,7 @@ OUT
assert_line 0 'export GOENV_SHELL=magicshell'
assert_line 1 "export GOENV_ROOT=$GOENV_ROOT"
assert_line 2 'if [ "${PATH#*$GOENV_ROOT/shims}" = "${PATH}" ]; then'
assert_line 3 ' export PATH="$GOENV_ROOT/shims:$PATH"'
assert_line 3 ' export PATH="$PATH:$GOENV_ROOT/shims"'
assert_line 4 'fi'
assert_line 5 'command goenv rehash 2>/dev/null'
assert_line 6 'goenv() {'
Expand Down

0 comments on commit 38d4060

Please sign in to comment.