Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Jan 21, 2025
1 parent 91dbdca commit 5500c5d
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ jest.mock('../../../hooks', () => ({
useGetAgentPoliciesQuery: jest.fn().mockReturnValue({
data: {
items: [
{ id: 'not_managed_policy', is_managed: false, updated_at: '2023-04-06T07:19:29.892Z' },
{ id: 'managed_policy', is_managed: true, updated_at: '2023-04-07T07:19:29.892Z' },
{
id: 'not_managed_policy',
is_managed: false,
updated_at: '2023-04-06T07:19:29.892Z',
agents: 1,
},
{
id: 'managed_policy',
is_managed: true,
updated_at: '2023-04-07T07:19:29.892Z',
agents: 1,
},
],
total: 2,
} as GetAgentPoliciesResponse,
Expand Down

0 comments on commit 5500c5d

Please sign in to comment.