Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Sep 30, 2022
1 parent 92932a7 commit d69b7aa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions x-pack/plugins/fleet/server/services/agents/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ describe('Agent actions', () => {
await cancelAgentAction(esClient, 'action1');

expect(mockedBulkUpdateAgents).toBeCalled();
expect(mockedBulkUpdateAgents).toBeCalledWith(expect.anything(), [
expect.objectContaining({ agentId: 'agent1' }),
expect.objectContaining({ agentId: 'agent2' }),
]);
expect(mockedBulkUpdateAgents).toBeCalledWith(
expect.anything(),
[
expect.objectContaining({ agentId: 'agent1' }),
expect.objectContaining({ agentId: 'agent2' }),
],
{}
);
});
});
});

0 comments on commit d69b7aa

Please sign in to comment.