From 59b40b8ae743080e6b37571513d54039b063a8a5 Mon Sep 17 00:00:00 2001 From: "Stiliyan Tonev (Bark)" Date: Wed, 31 Jul 2024 16:42:03 +0300 Subject: [PATCH] Rookie mistake from my side, forgot to clean-up the nvmrc, which caused other tests to fail. Updated version color printing test because it did not pass. --- ...unning 'nvm-exec' should display required node version | 1 + .../Set Colors/nvm_print_versions calls nvm_get_colors | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/fast/Running 'nvm-exec' should display required node version b/test/fast/Running 'nvm-exec' should display required node version index df5ace7087..25c9a0de07 100755 --- a/test/fast/Running 'nvm-exec' should display required node version +++ b/test/fast/Running 'nvm-exec' should display required node version @@ -16,3 +16,4 @@ No NODE_VERSION provided; no .nvmrc file found"; # Skip install, we want to test the error message diff <(echo "${EXPECTED}") <(echo "${OUTPUT}") +rm .nvmrc diff --git a/test/fast/Set Colors/nvm_print_versions calls nvm_get_colors b/test/fast/Set Colors/nvm_print_versions calls nvm_get_colors index 55e2334993..b54d2300ba 100755 --- a/test/fast/Set Colors/nvm_print_versions calls nvm_get_colors +++ b/test/fast/Set Colors/nvm_print_versions calls nvm_get_colors @@ -2,7 +2,7 @@ \. ../../../nvm.sh -set -e +#set -e #nvm use system returns 127 and No system set message die () { # echo "$@" ; @@ -24,7 +24,7 @@ fi # default system color nvm use system OUTPUT=$(nvm_print_versions system) -FORMAT="\033[0;32m-> %12s\033[0m" +FORMAT="\033[0;33m%15s\033[0m" VERSION='system' EXPECTED_OUTPUT=$(command printf -- "${FORMAT}\\n" "${VERSION}") @@ -34,7 +34,7 @@ nvm_ls_current() { echo "current";} # default current color OUTPUT=$(nvm_print_versions current) -FORMAT="\033[0;32m-> %12s\033[0m" +FORMAT="\033[0;32m->%13s\033[0m" VERSION="current" EXPECTED_OUTPUT=$(command printf -- "${FORMAT}\\n" "${VERSION}") @@ -43,7 +43,7 @@ EXPECTED_OUTPUT=$(command printf -- "${FORMAT}\\n" "${VERSION}") # custom current color nvm set-colors YCMGR OUTPUT=$(nvm_print_versions current) -FORMAT="\033[1;35m-> %12s\033[0m" +FORMAT="\033[1;35m->%13s\033[0m" VERSION="current" EXPECTED_OUTPUT=$(command printf -- "${FORMAT}\\n" "${VERSION}")