From a216f56443daf9e9ed3047be563f93de9ec1f083 Mon Sep 17 00:00:00 2001 From: elliottcable Date: Sat, 7 Feb 2015 20:53:53 -0600 Subject: [PATCH] tests: fail install_script test if npm can't install package --- test/install_script/nvm_check_global_modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/install_script/nvm_check_global_modules b/test/install_script/nvm_check_global_modules index 5a44241..0c6889a 100755 --- a/test/install_script/nvm_check_global_modules +++ b/test/install_script/nvm_check_global_modules @@ -27,7 +27,7 @@ setup () { setup -npm install -g nop >/dev/null +npm install -g nop >/dev/null || die 'nvm_check_global_modules cannot be tested because `npm` cannot install the `nop` package' message=$(nvm_check_global_modules) [ ! -z "$message" ] || { puts '-- `npm --version`: '"$(npm --version)"