Skip to content

Commit

Permalink
MISC
Browse files Browse the repository at this point in the history
  • Loading branch information
sahinvardar committed Feb 25, 2024
1 parent daaa280 commit 2c94a18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tests/utils.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
padHex
} from '../utils';
import { BigInteger } from 'jsbn';
import { Buffer } from 'buffer';

describe('Utils Test', () => {
test('padHex', () => {
Expand All @@ -28,10 +27,10 @@ describe('Utils Test', () => {
});

test('hashBuffer', async () => {
expect(await hashBuffer(Buffer.from([0xff]))).toBe(
expect(await hashBuffer(new Uint8Array([0xff]))).toBe(
'a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89'
);
expect(await hashBuffer(Buffer.from([0x01, 0x23]))).toBe(
expect(await hashBuffer(new Uint8Array([0x01, 0x23]))).toBe(
'b71de80778f2783383f5d5a3028af84eab2f18a4eb38968172ca41724dd4b3f4'
);
});
Expand Down

0 comments on commit 2c94a18

Please sign in to comment.