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

Function testTextStringSource

test/parallel/test-stream-iter-consumers-bytes.js:194–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192}
193
194async function testTextStringSource() {
195 const { text } = require('stream/iter');
196 const result = await text('direct-string');
197 assert.strictEqual(result, 'direct-string');
198}
199
200Promise.all([
201 testBytesSyncBasic(),

Calls 2

requireFunction · 0.50
textFunction · 0.50

Tested by

no test coverage detected