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

Function testDefaultIsStrict

test/parallel/test-stream-iter-writable-interop.js:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28// =============================================================================
29
30async function testDefaultIsStrict() {
31 const writable = new Writable({
32 highWaterMark: 1024,
33 write(chunk, encoding, cb) { cb(); },
34 });
35
36 const writer = fromWritable(writable);
37 // Should work fine when buffer has room
38 await writer.write('hello');
39 await writer.end();
40}
41
42// =============================================================================
43// Basic write: pipeTo through the adapter (block policy for pipeTo compat)

Calls 3

fromWritableFunction · 0.85
writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…