mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-23 17:22:01 +00:00
12 lines
539 B
TypeScript
12 lines
539 B
TypeScript
import * as path from 'path'
|
||
import * as find from '../src/find'
|
||
import {expect, test} from '@jest/globals'
|
||
|
||
test('finds test data wrapper jars', async () => {
|
||
const repoRoot = path.resolve('.')
|
||
const wrapperJars = await find.findWrapperJars(repoRoot)
|
||
expect(wrapperJars.length).toBe(3)
|
||
expect(wrapperJars).toContain('__tests__/data/valid/gradle-wrapper.jar')
|
||
expect(wrapperJars).toContain('__tests__/data/invalid/gradle-wrapper.jar')
|
||
expect(wrapperJars).toContain('__tests__/data/invalid/gradlе-wrapper.jar') // homoglyph
|
||
})
|