Skip to content

Commit

Permalink
rm only in conversion.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Swen committed Apr 2, 2024
1 parent 05b5c20 commit bdc34f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/stateless.js/src/utils/conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if (import.meta.vitest) {
const buf = Buffer.from(
'6500000000000000000000000000000000000000000000000000000000000000',
'hex',
);
).reverse();
expect(isSmallerThanBn254FieldSizeLe(buf)).toBe(false);
});
});
Expand All @@ -117,7 +117,7 @@ if (import.meta.vitest) {
18, 44,
];

it.only('should return a valid value for initial buffer', async () => {
it('should return a valid value for initial buffer', async () => {
const result = await hashToBn254FieldSizeLe(Buffer.from(bytes));

expect(Array.from(result![0])).toEqual(refResult);
Expand All @@ -132,7 +132,7 @@ if (import.meta.vitest) {
expect(result).not.toBeNull();
if (result) {
expect(result[0]).toBeInstanceOf(Buffer);
expect(result[1]).toBe(255);
expect(result[1]).toBe(254);
}
});

Expand Down

0 comments on commit bdc34f1

Please sign in to comment.