isohash/test/test.both.ts
2024-05-28 12:40:32 +02:00

13 lines
444 B
TypeScript

import { expect, tap } from '@push.rocks/tapbundle';
import * as isohash from '../ts/index.js';
tap.test('first test', async () => {
const compareHash = 'f94b840e404ef088fd378ad3811e36357ab6ee39020bfbe48c8bf11b65d100dc';
const originString = 'eruzw873zrhchkjhdfuezrw';
const hashResult = await isohash.sha256FromString(originString);
expect(hashResult).toEqual(compareHash);
console.log(hashResult);
});
export default tap.start();