Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Apr 7, 2021
1 parent 3f6c078 commit 55e75a5
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions x-pack/plugins/actions/server/builtin_action_types/es_index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,20 +406,22 @@ describe('execute()', () => {
"documents": Array [
Object {
"@timestamp": "2021-01-01T00:00:00.000Z",
"alert": Object {
"actionGroup": "action-group-id",
"actionGroupName": "Action Group",
"context": Object {
"rule-type": Object {
"contextVar1": "contextValue1",
"contextVar2": "contextValue2",
},
},
"id": "alert-id",
},
"event": Object {
"kind": "alert",
},
"kibana": Object {
"alert": Object {
"actionGroup": "action-group-id",
"actionGroupName": "Action Group",
"context": Object {
"rule-type": Object {
"contextVar1": "contextValue1",
"contextVar2": "contextValue2",
},
},
"id": "alert-id",
},
},
"rule": Object {
"id": "rule-id",
"name": "rule-name",
Expand Down Expand Up @@ -484,20 +486,22 @@ describe('execute()', () => {
"documents": Array [
Object {
"@timestamp": "2021-01-01T00:00:00.000Z",
"alert": Object {
"actionGroup": "action-group-id",
"actionGroupName": "Action Group",
"context": Object {
"rule-type": Object {
"contextVar1": "contextValue1",
"contextVar2": "contextValue2",
},
},
"id": "alert-id",
},
"event": Object {
"kind": "alert",
},
"kibana": Object {
"alert": Object {
"actionGroup": "action-group-id",
"actionGroupName": "Action Group",
"context": Object {
"rule-type": Object {
"contextVar1": "contextValue1",
"contextVar2": "contextValue2",
},
},
"id": "alert-id",
},
},
"rule": Object {
"id": "rule-id",
"name": "rule-name",
Expand Down

0 comments on commit 55e75a5

Please sign in to comment.