Skip to content

Commit 5a28180

Browse files
committed
tests: Add test to check if the message contains the relevant information.
1 parent e2ff1e7 commit 5a28180

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
set -ex
4+
die () { echo "$@" ; exit 1; }
5+
\. ../../../nvm.sh
6+
7+
NVM_TEST_VERSION=v9
8+
9+
# Remove the stuff we're clobbering.
10+
[ -e ../../$NVM_TEST_VERSION ] && rm -R ../../$NVM_TEST_VERSION
11+
12+
# Write it to nvmrc
13+
echo "$NVM_TEST_VERSION" > .nvmrc
14+
15+
# Skip install, we want to test the error message
16+
nvm-exec

0 commit comments

Comments
 (0)