(headers: Record<string, string> = {})
| 25 | })); |
| 26 | |
| 27 | function createMockFetchEvent(headers: Record<string, string> = {}): FetchEvent { |
| 28 | return { |
| 29 | request: new Request("http://localhost/test", { headers }), |
| 30 | response: { |
| 31 | headers: { |
| 32 | getSetCookie: () => [], |
| 33 | }, |
| 34 | }, |
| 35 | nativeEvent: {}, |
| 36 | locals: {}, |
| 37 | } as FetchEvent; |
| 38 | } |
| 39 | |
| 40 | describe("createSingleFlightHeaders", () => { |
| 41 | let createSingleFlightHeaders: (sourceEvent: FetchEvent) => Headers; |
no outgoing calls
no test coverage detected
searching dependent graphs…