()
| 152 | } |
| 153 | |
| 154 | async function testInvalidBackpressure() { |
| 155 | assert.throws(() => push({ backpressure: 'banana' }), { |
| 156 | code: 'ERR_INVALID_ARG_VALUE', |
| 157 | }); |
| 158 | assert.throws(() => push({ backpressure: '' }), { |
| 159 | code: 'ERR_INVALID_ARG_VALUE', |
| 160 | }); |
| 161 | |
| 162 | // Valid values should not throw |
| 163 | for (const bp of ['strict', 'block', 'drop-oldest', 'drop-newest']) { |
| 164 | push({ backpressure: bp }); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | Promise.all([ |
| 169 | testBasicWriteRead(), |
no test coverage detected
searching dependent graphs…