-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: ignore fetch from test coverage
- Loading branch information
1 parent
55cd022
commit a9a5df6
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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])); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters