()
| 86 | { |
| 87 | let called = false; |
| 88 | async function test() { |
| 89 | const blob = getAssetAsBlob('person.jpg'); |
| 90 | const buffer = await blob.arrayBuffer(); |
| 91 | assert.deepStrictEqual(Buffer.from(buffer), binaryAssetOnDisk); |
| 92 | const blob2 = getAssetAsBlob('utf8_test_text.txt'); |
| 93 | const text = await blob2.text(); |
| 94 | assert.strictEqual(text, textAssetOnDisk); |
| 95 | } |
| 96 | test().then(() => { |
| 97 | called = true; |
| 98 | }); |
no test coverage detected
searching dependent graphs…