mirror of
https://github.com/gradle/wrapper-validation-action
synced 2024-11-23 17:22:01 +00:00
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
import * as path from 'path'
|
|
import * as hash from '../src/hash'
|
|
import {expect, test} from '@jest/globals'
|
|
|
|
test('can sha256 files', async () => {
|
|
const sha = await hash.sha256File(
|
|
path.resolve('__tests__/data/invalid/gradle-wrapper.jar')
|
|
)
|
|
expect(sha).toEqual(
|
|
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
|
|
)
|
|
})
|