nvm_has_system_node
This file
Path
test/fast/Unit tests/nvm_has_system_node
28 lines · 363 bytes
Last changed by
[Tests] set `$_` before sourcing `nvm.sh` in fast testsJordan Harbandbefore adoptionc451e7a
History of this fileTake it
1#!/bin/sh23: nvm.sh4\. ../../../nvm.sh5\. ../../common.sh67cleanup () {8 rm -rf "${NVM_DIR}/v0.1.2"9}10die () { echo "$@" ; exit 1; }1112make_fake_node v0.1.21314nvm use 0.1.21516if command -v node; then17 nvm_has_system_node18else19 ! nvm_has_system_node20fi2122nvm deactivate /dev/null 2>&12324if command -v node; then25 nvm_has_system_node26else27 ! nvm_has_system_node28fi