Compare commits

..

2 Commits

Author SHA1 Message Date
Stiliyan Tonev (Bark)
650b069bb8 Seems changes done in docker do not persist, had to reapply them 2024-07-30 11:56:35 +03:00
Stiliyan Tonev (Bark)
5a28180ed6 tests: Add test to check if the message contains the relevant information. 2024-07-30 11:51:32 +03:00

View File

@ -0,0 +1,20 @@
#!/bin/bash
set -x
\. ../../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
output="$(../../nvm-exec 2>&1)";
expected='N/A: version "v9" is not yet installed.
You need to run `nvm install v9` to install and use it.
No NODE_VERSION provided; no .nvmrc file found';
# Skip install, we want to test the error message
diff <(echo "$expected") <(echo "$output")