fleet/frontend/__mocks__/macAdminsMock.ts
Jacob Shandling ce5a1b44cd
UI: Disk encryption banners (#10329)
## Addresses #9414
## Implements
<img width="1021" alt="Screenshot 2023-03-06 at 5 47 18 PM"
src="https://user-images.githubusercontent.com/61553566/223297991-507da9c5-1dd6-40da-b16b-9961645abd4e.png">
<img width="1257" alt="Screenshot 2023-03-06 at 5 47 49 PM"
src="https://user-images.githubusercontent.com/61553566/223298063-5ff380ed-7006-40a7-8a81-3a42936fa435.png">


https://user-images.githubusercontent.com/61553566/223298116-eabbb73c-6323-49b7-b731-3b5da2e3d28d.mov

## Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`
- [ ] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-03-13 14:15:55 -07:00

30 lines
704 B
TypeScript

import { IMacadminsResponse } from "interfaces/host";
const DEFAULT_MAC_ADMINS_MOCK: IMacadminsResponse = {
macadmins: {
mobile_device_management: {
encryption_key_available: false,
enrollment_status: "On (manual)",
server_url: "https://kandji.com/2",
name: "Kandji",
id: 11,
profiles: [],
macos_settings: {
disk_encryption: null,
action_required: null,
},
},
munki: {
version: "1.2.3",
},
munki_issues: [],
},
};
const createMockMacAdmins = (
overrides?: Partial<IMacadminsResponse>
): IMacadminsResponse => {
return { ...DEFAULT_MAC_ADMINS_MOCK, ...overrides };
};
export default createMockMacAdmins;