mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 01:50:01 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			563 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			563 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as path from 'path'
 | ||
| import * as find from '../../../src/wrapper-validation/find'
 | ||
| import {expect, test} from '@jest/globals'
 | ||
| 
 | ||
| test('finds test data wrapper jars', async () => {
 | ||
|   const repoRoot = path.resolve('./test/jest/wrapper-validation')
 | ||
|   const wrapperJars = await find.findWrapperJars(repoRoot)
 | ||
|   expect(wrapperJars.length).toBe(3)
 | ||
|   expect(wrapperJars).toContain('data/valid/gradle-wrapper.jar')
 | ||
|   expect(wrapperJars).toContain('data/invalid/gradle-wrapper.jar')
 | ||
|   expect(wrapperJars).toContain('data/invalid/gradlе-wrapper.jar') // homoglyph
 | ||
| })
 |