fleet/frontend/__mocks__/axiosError.ts
Gabriel Hernandez c5a4fa60b7
Feat UI update macos windows setup (#12744)
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:**


![image](https://github.com/fleetdm/fleet/assets/1153709/dc3371a6-864b-4af8-8e97-d716d5a51361)


![image](https://github.com/fleetdm/fleet/assets/1153709/5d7ebb54-6c80-45ac-86b2-93d452357b96)

**Adding a new mac os mdm page on a new URL:**


![image](https://github.com/fleetdm/fleet/assets/1153709/30e42176-d4ab-4087-bde0-d74c81fde613)

- [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
2023-07-17 15:51:40 +01:00

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;