isohash/test/test.both.ts
2020-09-29 16:21:56 +00:00

13 lines
426 B
TypeScript

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