Sebastiaan de Schaetzen b3863e10a2
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
CI-codeql / Analyze (javascript-typescript) (push) Failing after 59s
Update Wrapper checksums file / Update checksums (push) Failing after 1m14s
Initial commit
2024-09-25 17:07:42 +02:00

13 lines
396 B
TypeScript

import * as path from 'path'
import * as hash from '../../../src/wrapper-validation/hash'
import {expect, test} from '@jest/globals'
test('can sha256 files', async () => {
const sha = await hash.sha256File(
path.resolve('test/jest/wrapper-validation/data/invalid/gradle-wrapper.jar')
)
expect(sha).toEqual(
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
)
})