Skip to content

Commit e4d0743

Browse files
committed
fix tests to accept buffer or Uint8Array
browser tests return Uint8Array, unit tests return Buffer due to new library implementation
1 parent 23fae2d commit e4d0743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/test/unit/bytes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("intToBytes", () => {
3636
const type = typeof input;
3737
const length = input[1];
3838
it(`should correctly serialize ${type} to bytes length ${length}`, () => {
39-
expect(intToBytes(input[0], input[1])).toEqual(output);
39+
expect(toHex(intToBytes(input[0], input[1]))).toEqual(toHex(output));
4040
});
4141
}
4242
});

0 commit comments

Comments
 (0)