mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Test nvm install wrapper
This commit is contained in:
		
							parent
							
								
									cefc60931b
								
							
						
					
					
						commit
						bdc2c2b87f
					
				
							
								
								
									
										14
									
								
								tests/wrapper commands/nvm install
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								tests/wrapper commands/nvm install
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
source ../common.sh
 | 
			
		||||
 | 
			
		||||
# Load zsh-nvm
 | 
			
		||||
load_zsh_nvm
 | 
			
		||||
 | 
			
		||||
# Fallback to default nvm install
 | 
			
		||||
nvm install 5 && [[ "$(node --version)" == "v5."* ]] || die "nvm install 5 didn't fall back to default nvm install"
 | 
			
		||||
 | 
			
		||||
# Install Nightly
 | 
			
		||||
nvm install nightly && [[ "$(node --version)" == *"nightly"* ]] || die "nvm install nightly didn't install a nightly"
 | 
			
		||||
 | 
			
		||||
# Install Release Candidate
 | 
			
		||||
nvm install rc && [[ "$(node --version)" == *"rc"* ]] || die "nvm install rc didn't install a release candidate"
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user