(expected, actual)
| 631 | after(() => client.destroy()) |
| 632 | |
| 633 | const testCase = async (expected, actual) => { |
| 634 | const { body } = await client.request({ |
| 635 | path: '/', |
| 636 | method: 'GET', |
| 637 | headers: expected |
| 638 | }) |
| 639 | |
| 640 | const result = await body.json() |
| 641 | t.deepStrictEqual(result, { ...result, ...actual }) |
| 642 | } |
| 643 | |
| 644 | await testCase({ key: [null] }, { key: '' }) |
| 645 | await testCase({ key: ['test'] }, { key: 'test' }) |
no test coverage detected
searching dependent graphs…