1
0
mirror of https://github.com/nvm-sh/nvm.git synced 2025-10-13 04:25:50 +08:00
nvm/test/fast/Running 'nvm alias' should create a file in the alias directory

12 lines
146 B
Bash
Executable File

#!/bin/sh
set -ex
export NVM_DIR="$(cd ../.. && pwd)"
\. ../../nvm.sh
nvm alias test v0.1.2
[ "$(cat "$(nvm_alias_path)/test")" = "v0.1.2" ]