Skip to content

Commit

Permalink
test: rejects should be truthy for jest
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Feb 2, 2024
1 parent ab426bc commit ab5d29a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/start.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,9 @@ describe('start command', () => {
await run(['start', '--fresh', '--detach'])

console.log('(test) Trying to fetch the data')
// TODO check response status
// locally 'timeout of 1000ms exceeded'
// ci 'Request failed with status code 404'
expect(async () => await bee.downloadData(reference, { timeout: 1000 })).toThrow()
expect(bee.downloadData(reference, { timeout: 1000 })).rejects.toBeTruthy()
}),
)
})
Expand Down

0 comments on commit ab5d29a

Please sign in to comment.