()
| 99 | } |
| 100 | |
| 101 | export const createAxiosNotFoundErrorObject = () => |
| 102 | new AxiosError( |
| 103 | "Request failed with status code 404", |
| 104 | "ERR_BAD_REQUEST", |
| 105 | undefined, |
| 106 | undefined, |
| 107 | { |
| 108 | status: 404, |
| 109 | statusText: "Not Found", |
| 110 | data: { message: "Settings not found" }, |
| 111 | headers: {}, |
| 112 | // @ts-expect-error - we only need the response object for this test |
| 113 | config: {}, |
| 114 | }, |
| 115 | ); |
| 116 | |
| 117 | export const createAxiosError = ( |
| 118 | status: number, |
nothing calls this directly
no outgoing calls
no test coverage detected