mirror of
				https://github.com/actions/setup-java.git
				synced 2025-10-31 14:30:53 +00:00 
			
		
		
		
	Add ESLint config and update Prettier
This commit is contained in:
		
					parent
					
						
							
								ea15b3b99c
							
						
					
				
			
			
				commit
				
					
						f807a6d6e8
					
				
			
		
					 49 changed files with 3683 additions and 980 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| import path = require('path'); | ||||
| import io = require('@actions/io'); | ||||
| import exec = require('@actions/exec'); | ||||
| import * as path from 'path'; | ||||
| import * as io from '@actions/io'; | ||||
| import * as exec from '@actions/exec'; | ||||
| import * as gpg from '../src/gpg'; | ||||
| 
 | ||||
| jest.mock('@actions/exec', () => { | ||||
|   return { | ||||
|  | @ -11,8 +12,6 @@ jest.mock('@actions/exec', () => { | |||
| const tempDir = path.join(__dirname, 'runner', 'temp'); | ||||
| process.env['RUNNER_TEMP'] = tempDir; | ||||
| 
 | ||||
| import gpg = require('../src/gpg'); | ||||
| 
 | ||||
| describe('gpg tests', () => { | ||||
|   beforeEach(async () => { | ||||
|     await io.mkdirP(tempDir); | ||||
|  | @ -33,7 +32,11 @@ describe('gpg tests', () => { | |||
| 
 | ||||
|       expect(keyId).toBeNull(); | ||||
| 
 | ||||
|       expect(exec.exec).toHaveBeenCalledWith('gpg', expect.anything(), expect.anything()); | ||||
|       expect(exec.exec).toHaveBeenCalledWith( | ||||
|         'gpg', | ||||
|         expect.anything(), | ||||
|         expect.anything() | ||||
|       ); | ||||
|     }); | ||||
|   }); | ||||
| 
 | ||||
|  | @ -42,7 +45,11 @@ describe('gpg tests', () => { | |||
|       const keyId = 'asdfhjkl'; | ||||
|       await gpg.deleteKey(keyId); | ||||
| 
 | ||||
|       expect(exec.exec).toHaveBeenCalledWith('gpg', expect.anything(), expect.anything()); | ||||
|       expect(exec.exec).toHaveBeenCalledWith( | ||||
|         'gpg', | ||||
|         expect.anything(), | ||||
|         expect.anything() | ||||
|       ); | ||||
|     }); | ||||
|   }); | ||||
| }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue