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

Function testInvalidSourceAsync

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

Source from the content-addressed store, hash-verified

267// =============================================================================
268
269function testInvalidSourceAsync() {
270 assert.throws(() => toReadable(42),
271 { code: 'ERR_INVALID_ARG_TYPE' });
272 assert.throws(() => toReadable('not iterable'),
273 { code: 'ERR_INVALID_ARG_TYPE' });
274 assert.throws(() => toReadable(null),
275 { code: 'ERR_INVALID_ARG_TYPE' });
276}
277
278// =============================================================================
279// fromStreamIter: signal aborts the readable

Callers 1

Calls 1

toReadableFunction · 0.85

Tested by

no test coverage detected