Skip to content

Commit

Permalink
Update query test and its snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Feb 19, 2025
1 parent 3ac8025 commit b879c1e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions api/test/__snapshots__/query.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,22 @@ exports[`events query makes the expected query to ES for a given set of query pa
"query": "henry wellcome",
"type": "cross_fields",
},
"nested": {
"path": "filter.times",
"query": {
"bool": {
"must": [
{
"range": {
"filter.times.endDateTime": {
"lt": "now",
},
},
},
],
},
},
},
},
"must_not": {
"term": {
Expand Down
2 changes: 2 additions & 0 deletions api/test/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ describe('events query', () => {
const page = 7;
const sortOrder = 'asc';
const query = 'henry wellcome';
const timespan = 'past';

const params = new URLSearchParams({
aggregations,
Expand All @@ -89,6 +90,7 @@ describe('events query', () => {
pageSize,
sortOrder,
query,
timespan,
} as unknown as Record<string, string>);
const esRequest = await elasticsearchRequestForURL(
`/events?${params.toString()}`
Expand Down

0 comments on commit b879c1e

Please sign in to comment.