Skip to content

Commit

Permalink
add e2e test for non-existent event
Browse files Browse the repository at this point in the history
  • Loading branch information
tuminzee committed Dec 4, 2024
1 parent 754ec18 commit c798969
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/trench/test/e2e/events.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,10 @@ describe('events/', () => {
expect(queryResults.results[0].properties.plan).toEqual('premium')
expect(queryResults.results[0].properties.country).toEqual('USA')
})

test('should return an error when querying for a non-existent event', async () => {
await expect(waitForQueryResults('event=NonExistentEvent')).rejects.toThrow(
'Timeout: No results found'
)
})
})

0 comments on commit c798969

Please sign in to comment.