()
| 477 | // ============================================================================= |
| 478 | |
| 479 | function testEmptySync() { |
| 480 | function* gen() { |
| 481 | // yields nothing |
| 482 | } |
| 483 | |
| 484 | const readable = toReadableSync(gen()); |
| 485 | const result = readable.read(); |
| 486 | assert.strictEqual(result, null); |
| 487 | } |
| 488 | |
| 489 | // ============================================================================= |
| 490 | // fromStreamIterSync: destroy calls iterator.return() |
no test coverage detected