Initial commit
Some checks failed
CI-integ-test-full / caching-integ-tests (push) Failing after 32s
CI-integ-test-full / other-integ-tests (push) Failing after 29m15s
Update Wrapper checksums file / Update checksums (push) Failing after 1m50s
CI-codeql / Analyze (javascript-typescript) (push) Failing after 1m22s
Some checks failed
CI-integ-test-full / caching-integ-tests (push) Failing after 32s
CI-integ-test-full / other-integ-tests (push) Failing after 29m15s
Update Wrapper checksums file / Update checksums (push) Failing after 1m50s
CI-codeql / Analyze (javascript-typescript) (push) Failing after 1m22s
This commit is contained in:
12
sources/test/jest/wrapper-validation/find.test.ts
Normal file
12
sources/test/jest/wrapper-validation/find.test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as path from 'path'
|
||||
import * as find from '../../../src/wrapper-validation/find'
|
||||
import {expect, test} from '@jest/globals'
|
||||
|
||||
test('finds test data wrapper jars', async () => {
|
||||
const repoRoot = path.resolve('./test/jest/wrapper-validation')
|
||||
const wrapperJars = await find.findWrapperJars(repoRoot)
|
||||
expect(wrapperJars.length).toBe(3)
|
||||
expect(wrapperJars).toContain('data/valid/gradle-wrapper.jar')
|
||||
expect(wrapperJars).toContain('data/invalid/gradle-wrapper.jar')
|
||||
expect(wrapperJars).toContain('data/invalid/gradlе-wrapper.jar') // homoglyph
|
||||
})
|
||||
Reference in New Issue
Block a user