Skip to content

Commit

Permalink
Updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiopro committed Nov 29, 2021
1 parent a1fbd5e commit 31a4fe4
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@ describe('aggregate()', () => {
{ key: 'unknown', doc_count: 2 },
],
},
enabled: {
buckets: [
{ key: 0, key_as_string: '0', doc_count: 2 },
{ key: 1, key_as_string: '1', doc_count: 28 },
],
},
muted: {
buckets: [
{ key: 0, key_as_string: '0', doc_count: 27 },
{ key: 1, key_as_string: '1', doc_count: 3 },
],
},
},
});

Expand Down Expand Up @@ -120,6 +132,14 @@ describe('aggregate()', () => {
"pending": 4,
"unknown": 2,
},
"ruleEnabledStatus": Object {
"disabled": 2,
"enabled": 28,
},
"ruleMutedStatus": Object {
"muted": 3,
"unmuted": 27,
},
}
`);
expect(unsecuredSavedObjectsClient.find).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 31a4fe4

Please sign in to comment.