()
| 20 | } |
| 21 | |
| 22 | async function testOndrainNonDrainable() { |
| 23 | // Non-drainable objects return null |
| 24 | assert.strictEqual(ondrain(null), null); |
| 25 | assert.strictEqual(ondrain({}), null); |
| 26 | assert.strictEqual(ondrain('string'), null); |
| 27 | } |
| 28 | |
| 29 | async function testOndrainProtocolErrorPropagates() { |
| 30 | const badDrainable = { |
no test coverage detected