mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
relates to #12168 Updates the fleet UI so that the macOS mdm setup flow is similar to the windows mdm setup. This includes: **Adding a new macos setup card:**   **Adding a new mac os mdm page on a new URL:**  - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Manual QA for all new/changed functionality
14 lines
354 B
TypeScript
14 lines
354 B
TypeScript
import { AxiosError } from "axios";
|
|
|
|
const DEFAULT_AXIOS_ERROR_MOCK: AxiosError = {
|
|
isAxiosError: true,
|
|
toJSON: () => ({}),
|
|
name: "Error",
|
|
message: "error message",
|
|
};
|
|
|
|
const createMockAxiosError = (overrides?: Partial<AxiosError>): AxiosError => {
|
|
return { ...DEFAULT_AXIOS_ERROR_MOCK, ...overrides };
|
|
};
|
|
|
|
export default createMockAxiosError;
|