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

Function testInvalidSourceSync

test/parallel/test-stream-iter-to-readable.js:527–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525// =============================================================================
526
527function testInvalidSourceSync() {
528 assert.throws(() => toReadableSync(42),
529 { code: 'ERR_INVALID_ARG_TYPE' });
530 assert.throws(() => toReadableSync(null),
531 { code: 'ERR_INVALID_ARG_TYPE' });
532}
533
534// =============================================================================
535// fromStreamIterSync: options validation

Callers 1

Calls 1

toReadableSyncFunction · 0.85

Tested by

no test coverage detected