Skip to content

Commit

Permalink
fix wrong errmsg
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Oct 3, 2024
1 parent 1123265 commit 99cf850
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('get', () => {
})
})

it('should fail due to non-existent transaction', async () => {
it.only('should fail due to non-existent transaction', async () => {
// expect.assertions(2)
// try {
// await controller.get('invalidtransactionid')
Expand All @@ -88,9 +88,7 @@ describe('get', () => {
// error: 'Not Found'
// })
// }
const res: any = await controller.get('invalidtransactionid')
expect(res.code).toStrictEqual(400)
expect(res.message).toStrictEqual('bad hex string length 64 (expected 20)')
await expect(controller.get('invalidtransactionid')).rejects.toThrowError('400 - BadRequest (/invalidtransactionid): bad hex string length 20 (expected 64)')
})
})

Expand Down

0 comments on commit 99cf850

Please sign in to comment.