wrapper-validation-action/__tests__/find.test.ts
Paul Merlin 9e2c9e95db Make TypeScript linter happy
Signed-off-by: Paul Merlin <paul@gradle.com>
2020-01-06 11:37:12 +01:00

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')
})