()
| 593 | // ============================================================================= |
| 594 | |
| 595 | function testTrustedSourceIdentity() { |
| 596 | const readable = new Readable({ read() {} }); |
| 597 | const iter = readable[toAsyncStreamable](); |
| 598 | |
| 599 | // from() should return the validated iterator directly (same reference), |
| 600 | // not wrap it in another generator |
| 601 | const result = from(iter); |
| 602 | assert.strictEqual(result, iter); |
| 603 | } |
| 604 | |
| 605 | // ============================================================================= |
| 606 | // Run all tests |
no test coverage detected