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

Function testDropOldestThrows

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

Source from the content-addressed store, hash-verified

260// =============================================================================
261
262function testDropOldestThrows() {
263 const writable = new Writable({ write(chunk, enc, cb) { cb(); } });
264 assert.throws(
265 () => fromWritable(writable, { backpressure: 'drop-oldest' }),
266 { code: 'ERR_INVALID_ARG_VALUE' },
267 );
268}
269
270// =============================================================================
271// Invalid backpressure value throws

Calls 1

fromWritableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…