Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
  • Loading branch information
Kishore Kumaar Natarajan committed Feb 12, 2025
1 parent 88c1e3e commit df9e021
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions common/utils/QueryUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ describe('retrieveQueryById', () => {
if (endpoint.includes('latency')) {
return Promise.resolve({
response: {
top_queries: [{
id: '1e5fde5b-c85f-419e-b8b6-3f43b3da4d59',
query: JSON.stringify({ match: { user_action: "login_attempt" } })
}]
top_queries: [
{
id: '1e5fde5b-c85f-419e-b8b6-3f43b3da4d59',
query: JSON.stringify({ match: { user_action: 'login_attempt' } }),
},
],
},
});
}
Expand All @@ -35,9 +37,7 @@ describe('retrieveQueryById', () => {
const result = await retrieveQueryById(mockCore, dataSourceId, start, end, id);
expect(result).toEqual({
id: '1e5fde5b-c85f-419e-b8b6-3f43b3da4d59',
query: JSON.stringify(
{"match":{"user_action":"login_attempt"}}
)
query: JSON.stringify({ match: { user_action: 'login_attempt' } }),
});
});

Expand Down

0 comments on commit df9e021

Please sign in to comment.