| 4 | const stringAsBase64 = str => btoa(buffer2string(new TextEncoder().encode(str).buffer)); |
| 5 | |
| 6 | const blobAsText = async blob => new TextDecoder().decode(await readBlob(blob, true)); |
| 7 | |
| 8 | // WARNING: don't include D800-DFFF range which is for surrogate pairs |
| 9 | const RESOURCE_TEXT = 'abcd\u1234\u2345\u3456\u4567\u5678\u6789\u789A\u89AB\u9ABC\uABCD'; |
no test coverage detected