()
| 267 | // ============================================================================= |
| 268 | |
| 269 | function 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 |
no test coverage detected