(sandbox)
| 109 | } |
| 110 | |
| 111 | function buildResponseSpy(sandbox) { |
| 112 | const headers = {}; |
| 113 | return { |
| 114 | headers, |
| 115 | setHeader: sandbox.spy((k, v) => { headers[k.toLowerCase()] = v; }), |
| 116 | getHeader: k => headers[k.toLowerCase()], |
| 117 | }; |
| 118 | } |
| 119 | |
| 120 | function buildLog(sandbox) { |
| 121 | return { |