wrapper-validation-action/__tests__/hash.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

11 lines
307 B
TypeScript

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