mirror of
				https://github.com/actions/setup-java.git
				synced 2025-10-31 06:20:53 +00:00 
			
		
		
		
	hopefully fixed util tests
This commit is contained in:
		
					parent
					
						
							
								ebb46eab94
							
						
					
				
			
			
				commit
				
					
						11c39b61f2
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -4,7 +4,10 @@ const env = process.env; | |||
| 
 | ||||
| describe('util tests', () => { | ||||
|   beforeEach(() => { | ||||
|     process.env = Object.assign({}, env); | ||||
|     const tempEnv = Object.assign({}, env); | ||||
|     delete tempEnv.RUNNER_TEMP; | ||||
|     delete tempEnv.USERPROFILE; | ||||
|     process.env = tempEnv; | ||||
|     Object.defineProperty(process, 'platform', {value: 'linux'}); | ||||
|   }); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue