[Tests] ensure things that care about colors run in a terminal

This commit is contained in:
Jordan Harband
2024-07-28 21:00:48 -07:00
parent ff1257e8e3
commit d2f31a21f3
9 changed files with 62 additions and 55 deletions

View File

@@ -8,12 +8,12 @@ cleanup() {
\. ../../../nvm.sh
MOCKS_DIR="$PWD/mocks"
MOCKS_DIR="${PWD}/mocks"
# sample output at the time the test was written
TAB_PATH="$MOCKS_DIR/nodejs.org-dist-index.tab"
TAB_PATH="${MOCKS_DIR}/nodejs.org-dist-index.tab"
nvm_download() {
cat "$TAB_PATH"
cat "${TAB_PATH}"
}
EXPECTED_OUTPUT_PATH="$MOCKS_DIR/nvm_ls_remote.txt"