()
| 46 | } |
| 47 | |
| 48 | async function testMultipleWrites() { |
| 49 | const [channelA, channelB] = duplex({ highWaterMark: 10 }); |
| 50 | |
| 51 | await channelA.writer.write('one'); |
| 52 | await channelA.writer.write('two'); |
| 53 | await channelA.writer.write('three'); |
| 54 | await channelA.close(); |
| 55 | |
| 56 | const data = await text(channelB.readable); |
| 57 | assert.strictEqual(data, 'onetwothree'); |
| 58 | } |
| 59 | |
| 60 | async function testChannelClose() { |
| 61 | const [channelA, channelB] = duplex(); |
no test coverage detected
searching dependent graphs…