MCPcopy Create free account
hub / github.com/nodejs/node / testNotObjectMode

Function testNotObjectMode

test/parallel/test-stream-iter-to-readable.js:259–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257// =============================================================================
258
259function testNotObjectMode() {
260 async function* gen() { yield [Buffer.from('x')]; }
261 const readable = toReadable(gen());
262 assert.strictEqual(readable.readableObjectMode, false);
263}
264
265// =============================================================================
266// fromStreamIter: invalid source throws

Callers 1

Calls 2

toReadableFunction · 0.85
genFunction · 0.70

Tested by

no test coverage detected