mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 01:50:01 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			396 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			396 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as path from 'path'
 | |
| import * as hash from '../../../src/wrapper-validation/hash'
 | |
| import {expect, test} from '@jest/globals'
 | |
| 
 | |
| test('can sha256 files', async () => {
 | |
|   const sha = await hash.sha256File(
 | |
|     path.resolve('test/jest/wrapper-validation/data/invalid/gradle-wrapper.jar')
 | |
|   )
 | |
|   expect(sha).toEqual(
 | |
|     'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
 | |
|   )
 | |
| })
 |