mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Initial import of wrapper-validation-action
This commit is contained in:
12
sources/test/jest/wrapper-validation/find.test.ts
Normal file
12
sources/test/jest/wrapper-validation/find.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
})
|
||||
Reference in New Issue
Block a user