Skip to content

Commit

Permalink
add timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav committed Sep 4, 2024
1 parent 4e96e98 commit 9113339
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ resources:
name: Returns 200
code: |-
const response1 = await insomnia.send();
const timelineString = await require('fs/promises').readFile(response1.timelinePath, 'utf8');
const timeline = timelineString.split('\n').filter(e => e?.trim()).map(e => JSON.parse(e).value).join(' ');
console.log(timeline);
const body = JSON.parse(response1.data)
console.log(body.headers)
expect(response1.status).to.equal(200);
Expand Down

0 comments on commit 9113339

Please sign in to comment.