Skip to content

Commit

Permalink
test: ignore fetch from test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Jun 20, 2024
1 parent 55cd022 commit a9a5df6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/ethCall.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { decodeAbiBytes } from './ethCall';

describe('decrypt', () => {
let clientKeySer: Uint8Array;

it('converts a hex to bytes', async () => {
const value = '0xff';
const bytes = decodeAbiBytes(value);
expect(bytes).toEqual(new Uint8Array([255]));

const value2 = '0x00';
const bytes2 = decodeAbiBytes(value2);
expect(bytes2).toEqual(new Uint8Array([]));

const value3 = '0xf0f0';
const bytes3 = decodeAbiBytes(value3);
expect(bytes3).toEqual(new Uint8Array([240, 240]));
});
});
1 change: 1 addition & 0 deletions src/ethCall.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
import { toHexString } from './utils';

export function decodeAbiBytes(hex: string): Uint8Array {
Expand Down

0 comments on commit a9a5df6

Please sign in to comment.