(host, wanted)
| 693 | after(() => client.destroy()) |
| 694 | |
| 695 | const getWithHost = async (host, wanted) => { |
| 696 | const { body } = await client.request({ |
| 697 | path: '/', |
| 698 | method: 'GET', |
| 699 | headers: { host } |
| 700 | }) |
| 701 | t.strictEqual(await body.text(), wanted) |
| 702 | } |
| 703 | |
| 704 | await getWithHost('test', 'test') |
| 705 | await getWithHost(undefined, serverAddress) |
no test coverage detected
searching dependent graphs…