()
| 120 | }; |
| 121 | |
| 122 | export const createAxiosNotFoundErrorObject = () => |
| 123 | new AxiosError( |
| 124 | "Request failed with status code 404", |
| 125 | "ERR_BAD_REQUEST", |
| 126 | undefined, |
| 127 | undefined, |
| 128 | { |
| 129 | status: 404, |
| 130 | statusText: "Not Found", |
| 131 | data: { message: "Settings not found" }, |
| 132 | headers: {}, |
| 133 | // @ts-expect-error - we only need the response object for this test |
| 134 | config: {}, |
| 135 | }, |
| 136 | ); |
| 137 | |
| 138 | export const createAxiosError = ( |
| 139 | status: number, |
nothing calls this directly
no outgoing calls
no test coverage detected