(
options: {
status?: number;
headers?: Record<string, string>;
} = {},
)
| 216 | } |
| 217 | |
| 218 | export function getMockResponse( |
| 219 | options: { |
| 220 | status?: number; |
| 221 | headers?: Record<string, string>; |
| 222 | } = {}, |
| 223 | ): HTTPResponse { |
| 224 | return { |
| 225 | status() { |
| 226 | return options.status ?? 200; |
| 227 | }, |
| 228 | headers(): Record<string, string> { |
| 229 | return options.headers ?? {}; |
| 230 | }, |
| 231 | } as unknown as HTTPResponse; |
| 232 | } |
| 233 | |
| 234 | export function html( |
| 235 | strings: TemplateStringsArray, |
no outgoing calls
no test coverage detected