MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

test/fixtures/sea/assets/sea.js:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 });

Calls 4

getAssetAsBlobFunction · 0.85
arrayBufferMethod · 0.65
textMethod · 0.65
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…