mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-23 17:22:01 +00:00
9e2c9e95db
Signed-off-by: Paul Merlin <paul@gradle.com>
13 lines
362 B
TypeScript
13 lines
362 B
TypeScript
import * as path from 'path'
|
|
import * as validate from '../src/validate'
|
|
|
|
test('validates wrapper jars', async () => {
|
|
let invalidWrapperJars = await validate.findInvalidWrapperJars(
|
|
path.resolve('.'),
|
|
false
|
|
)
|
|
expect(invalidWrapperJars.length).toBe(1)
|
|
expect(invalidWrapperJars[0]).toEqual(
|
|
'__tests__/data/invalid/gradle-wrapper.jar'
|
|
)
|
|
})
|