(requestGetter)
| 322 | } |
| 323 | |
| 324 | function testRequestLength(requestGetter) { |
| 325 | it('should set the length of the body of the request', () => { |
| 326 | const request = requestGetter(); |
| 327 | |
| 328 | assert.strictEqual(request.length, 0); |
| 329 | request.write(encoder, 0); |
| 330 | assert.ok(request.length > 0); |
| 331 | }); |
| 332 | } |
| 333 | |
| 334 | function getQueryRequest(options, params) { |
| 335 | options = options || {}; |