mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Adding a slow nvm current test, since it needs an installed version of node.
				
					
				
			This commit is contained in:
		
							
								
								
									
										10
									
								
								test/slow/Running "nvm current" should display current nvm environment.
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								test/slow/Running "nvm current" should display current nvm environment.
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,10 @@ | |||||||
|  | #!/bin/sh | ||||||
|  |  | ||||||
|  | die () { echo $@ ; exit 1; } | ||||||
|  |  | ||||||
|  | . ../../nvm.sh | ||||||
|  |  | ||||||
|  | nvm install 0.10 | ||||||
|  |  | ||||||
|  | [ "$(nvm current)" = "$(node -v)" ] || die "Failed to find current version: got \"$(nvm current)\", expected \"$(node -v)\"" | ||||||
|  |  | ||||||
		Reference in New Issue
	
	Block a user