TextEncoder allows non-Uint8Array Buffers (#596)
* TextEncoder allows non-Uint8Array Buffers * Add eslintrc to eslintignore
This commit is contained in:
@@ -33,7 +33,7 @@ describe('u8aToBn', (): void => {
|
||||
it('converts empty', (): void => {
|
||||
expect(
|
||||
u8aToBn(
|
||||
new Uint8Array([]),
|
||||
new Uint8Array(),
|
||||
{ isLe: true }
|
||||
).toString(16)
|
||||
).toBe('0');
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('u8aToString', (): void => {
|
||||
|
||||
it('decodes to an empty string for empty buffer', (): void => {
|
||||
expect(
|
||||
u8aToString(new Uint8Array([]))
|
||||
u8aToString(new Uint8Array())
|
||||
).toEqual('');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user