chore(package): update dependencies (#194)
This commit is contained in:
@@ -1,18 +1,13 @@
|
||||
// tslint:disable:no-expression-statement no-object-mutation
|
||||
import test, { Macro } from 'ava';
|
||||
import test from 'ava';
|
||||
import { sha256, sha256Native } from './hash';
|
||||
|
||||
const hash: Macro = (t, input: string, expected: string) => {
|
||||
t.is(sha256(input), expected);
|
||||
t.is(sha256Native(input), expected);
|
||||
};
|
||||
|
||||
hash.title = (providedTitle: string, input: string, expected: string) =>
|
||||
`${providedTitle}: ${input} => ${expected}`;
|
||||
|
||||
test(
|
||||
'sha256',
|
||||
hash,
|
||||
(t, input: string, expected: string) => {
|
||||
t.is(sha256(input), expected);
|
||||
t.is(sha256Native(input), expected);
|
||||
},
|
||||
'test',
|
||||
'9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user