From 48196d24368f5f7c6ccb5b093b588dfecd9bd941 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 23 Feb 2019 14:47:49 -0800 Subject: [PATCH] [Tests] fix fake node versions --- test/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common.sh b/test/common.sh index 095c1a8..8162b8a 100644 --- a/test/common.sh +++ b/test/common.sh @@ -30,7 +30,7 @@ make_fake_node() { [ -n "${VERSION}" ] || return 1 local BIN_PATH - BIN_PATH="$(nvm_version_path "${VERSION}")/bin" + BIN_PATH="$(nvm_version_path "$(nvm_format_version "${VERSION}")")/bin" mkdir -p "${BIN_PATH}" || { echo >&2 'unable to make bin dir' return 2 @@ -48,7 +48,7 @@ make_fake_iojs() { [ -n "${VERSION}" ] || return 1 local BIN_PATH - BIN_PATH="$(nvm_version_path "iojs-${VERSION}")/bin" + BIN_PATH="$(nvm_version_path "$(nvm_format_version "iojs-${VERSION}")")/bin" mkdir -p "${BIN_PATH}" || { echo >&2 'unable to make bin dir' return 2