Skip to content

Commit

Permalink
Log events when event log assertion fails
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 11, 2023
1 parent c1a35bc commit f87fc79
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/event-log-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ async function run() {

const events = await (await fetch(`http://localhost:${PORT}/event-log`)).json();

assert.equal(events.length, 2);
assert.equal(
events.length,
2,
`Expected 2 events. The following events were logged: ${JSON.stringify(events)} `
);

const [bootEvent, mainEvent] = events;

Expand Down

0 comments on commit f87fc79

Please sign in to comment.