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

Function testOndrainNonDrainable

test/parallel/test-stream-iter-push-writer.js:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22async function testOndrainNonDrainable() {
23 // Non-drainable objects return null
24 assert.strictEqual(ondrain(null), null);
25 assert.strictEqual(ondrain({}), null);
26 assert.strictEqual(ondrain('string'), null);
27}
28
29async function testOndrainProtocolErrorPropagates() {
30 const badDrainable = {

Callers 1

Calls 1

ondrainFunction · 0.70

Tested by

no test coverage detected