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