( bytes: Uint8Array, encoding: string, contentType: string | null = null )
| 5 | new Blob([bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength) as ArrayBuffer]); |
| 6 | |
| 7 | const expectReadBlobContentDecodesAs = async ( |
| 8 | bytes: Uint8Array, |
| 9 | encoding: string, |
| 10 | contentType: string | null = null |
| 11 | ) => { |
| 12 | await expect(readRawContent(blobFromBytes(bytes), contentType)).resolves.toBe(bytesDecode(encoding, bytes)); |
| 13 | }; |
| 14 | |
| 15 | describe.concurrent("encoding", () => { |
| 16 | describe.concurrent("parseCharsetFromContentType", () => { |
no test coverage detected