Skip to content

Commit

Permalink
tests: Add test to check if the message contains the relevant informa…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
userwiths committed Jul 30, 2024
1 parent e2ff1e7 commit 5a28180
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/slow/Running 'nvm-exec' should display required node version
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5a28180

Please sign in to comment.