()
| 260 | // ============================================================================= |
| 261 | |
| 262 | function 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 |
no test coverage detected
searching dependent graphs…