mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-27 10:42:03 +00:00
9e2c9e95db
Signed-off-by: Paul Merlin <paul@gradle.com>
10 lines
405 B
TypeScript
10 lines
405 B
TypeScript
import * as path from 'path'
|
|
import * as find from '../src/find'
|
|
|
|
test('finds test data wrapper jars', async () => {
|
|
const repoRoot = path.resolve('.')
|
|
const wrapperJars = await find.findWrapperJars(repoRoot)
|
|
expect(wrapperJars.length).toBe(2)
|
|
expect(wrapperJars).toContain('__tests__/data/valid/gradle-wrapper.jar')
|
|
expect(wrapperJars).toContain('__tests__/data/invalid/gradle-wrapper.jar')
|
|
})
|