Skip to content

Commit

Permalink
Fixes test
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Feb 1, 2022
1 parent defe453 commit 1fec617
Showing 1 changed file with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,32 @@ describe('useRuleExecutionEvents', () => {
expect(result.current.data).toEqual({
events: [
{
date: '2021-12-29T10:42:59.996Z',
status: RuleExecutionStatus.succeeded,
message: 'Rule executed successfully',
kibana: {
task: {
schedule_delay: 13980000000,
},
alert: {
rule: {
execution: {
metrics: {
total_alerts: 0,
total_hits: 0,
total_indexing_duration_ms: 0,
total_search_duration_ms: 9,
},
status: 'succeeded',
},
},
},
},
event: {
duration: 2065000000,
},
message: 'succeeded',
'@timestamp': '2022-02-01T05:51:27.143Z',
},
],
maxEvents: 1,
});
});
});

0 comments on commit 1fec617

Please sign in to comment.