1
0
mirror of synced 2025-11-08 04:48:04 +00:00
Files
typescript-starter/src/lib/hash.spec.ts
Jason Dreyzehner 390041b510 feat: TS v4, tslint -> eslint, add cspell support (#240)
Update all dependencies, migrate from tslint (deprecated) to typescript-eslint, and add support for
cspell.

BREAKING CHANGE: migrated from tslint (deprecated) to eslint.
2020-09-01 19:13:25 -04:00

14 lines
310 B
TypeScript

import test from 'ava';
import { sha256, sha256Native } from './hash';
test(
'sha256',
async (t, input: string, expected: string) => {
t.is(await sha256(input), expected);
t.is(sha256Native(input), expected);
},
'test',
'9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
);