(url)
| 19 | const path = require('node:path') |
| 20 | |
| 21 | const doGet = async function (url) { |
| 22 | const result = await fetch(url, { |
| 23 | method: 'GET', |
| 24 | redirect: 'manual', |
| 25 | keepAlive: false |
| 26 | }) |
| 27 | |
| 28 | return { |
| 29 | response: result, |
| 30 | body: await result.json().catch(() => undefined) |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | test('Once called, Reply should return an object with methods', t => { |
| 35 | t.plan(15) |