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

Function testObjectModeThrows

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

Source from the content-addressed store, hash-verified

634// =============================================================================
635
636function testObjectModeThrows() {
637 const writable = new Writable({
638 objectMode: true,
639 write(chunk, enc, cb) { cb(); },
640 });
641 assert.throws(
642 () => fromWritable(writable),
643 { code: 'ERR_INVALID_STATE' },
644 );
645}
646
647testFunctionExists();
648testSyncMethodsReturnFalse();

Calls 1

fromWritableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…