mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-01-16 20:27:18 +08:00
[Tests] ensure things that care about colors run in a terminal
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user