TextEncoder allows non-Uint8Array Buffers (#596)

* TextEncoder allows non-Uint8Array Buffers

* Add eslintrc to eslintignore
This commit is contained in:
Jaco Greeff
2020-05-11 09:57:00 +02:00
committed by GitHub
parent d3583dc432
commit d1de30907f
17 changed files with 1106 additions and 953 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ describe('u8aToBn', (): void => {
it('converts empty', (): void => {
expect(
u8aToBn(
new Uint8Array([]),
new Uint8Array(),
{ isLe: true }
).toString(16)
).toBe('0');
+1 -1
View File
@@ -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('');
});