wrapper-validation-action/__tests__/find.test.ts
Paul Merlin e1189600d2 First cut
Signed-off-by: Paul Merlin <paul@gradle.com>
2020-01-05 14:03:40 +01:00

10 lines
412 B
TypeScript

import * as path from "path";
import * as find from '../src/find'
test('finds test data wrapper jars', async () => {
let repoRoot = path.resolve('.')
let 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")
})