mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
tests: Add test to check if the message contains the relevant information.
This commit is contained in:
parent
e2ff1e7f08
commit
5a28180ed6
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
die () { echo "$@" ; exit 1; }
|
||||||
|
\. ../../../nvm.sh
|
||||||
|
|
||||||
|
NVM_TEST_VERSION=v9
|
||||||
|
|
||||||
|
# Remove the stuff we're clobbering.
|
||||||
|
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
|
||||||
|
|
||||||
|
# Write it to nvmrc
|
||||||
|
echo "$NVM_TEST_VERSION" > .nvmrc
|
||||||
|
|
||||||
|
# Skip install, we want to test the error message
|
||||||
|
nvm-exec
|
Loading…
Reference in New Issue
Block a user