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

Function testProtocolExists

test/parallel/test-stream-iter-readable-interop.js:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21// =============================================================================
22
23function testProtocolExists() {
24 assert.strictEqual(typeof Readable.prototype[toAsyncStreamable], 'function');
25
26 const readable = new Readable({ read() {} });
27 assert.strictEqual(typeof readable[toAsyncStreamable], 'function');
28}
29
30// =============================================================================
31// Byte-mode Readable: basic round-trip through from()

Calls

no outgoing calls

Tested by

no test coverage detected