mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
## For #32541 _This cannot be end-to-end tested until associated [server](https://github.com/fleetdm/fleet/issues/32542) and [agent](https://github.com/fleetdm/fleet/issues/32544) work is complete_ - Include windows as a valid platform with all logic for setup experience > software install IT Admin flow:  - [x] Changes file added for user-visible changes in `changes/` - [ ] QA'd all new/changed functionality manually --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
25 lines
817 B
TypeScript
25 lines
817 B
TypeScript
import {
|
|
ListEntitiesResponseCommon,
|
|
ListEntitiesResponsePaginationCommon,
|
|
} from "services/entities/common";
|
|
|
|
const DEFAULT_PAGINATION_RESPONSE: ListEntitiesResponsePaginationCommon = {
|
|
has_next_results: false,
|
|
has_previous_results: false,
|
|
};
|
|
|
|
export const createMockPaginationResponse = (
|
|
overrides?: Partial<ListEntitiesResponsePaginationCommon>
|
|
): typeof DEFAULT_PAGINATION_RESPONSE => {
|
|
return { ...DEFAULT_PAGINATION_RESPONSE, ...overrides };
|
|
};
|
|
const DEFAULT_LIST_ENTITIES_RESPONSE_COMMON_MOCK: ListEntitiesResponseCommon = {
|
|
meta: createMockPaginationResponse(),
|
|
count: 1,
|
|
};
|
|
|
|
export const createMockListEntitiesResponseCommon = (
|
|
overrides?: Partial<ListEntitiesResponseCommon>
|
|
): ListEntitiesResponseCommon => {
|
|
return { ...DEFAULT_LIST_ENTITIES_RESPONSE_COMMON_MOCK, ...overrides };
|
|
};
|