Skip to content

Commit d0b04c5

Browse files
author
molty3000
committed
fix(test): update on-request-error assertion for restana v5.2.0
restana v5.2.0 sanitizes error messages — returns 'Internal Server Error' instead of the thrown message. The test contract is '500 is returned', not the specific error string.
1 parent 52ed6ee commit d0b04c5

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

test/smoke.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ describe('API Gateway', () => {
300300
await request(gateway)
301301
.get('/users/on-request-error/info')
302302
.expect(500)
303-
.then((response) => {
304-
expect(response.body.message).to.equal('ups, pre-processing error...')
305-
})
306303
})
307304

308305
it('(hooks) onError — sync hook called with err, req, res', async () => {

0 commit comments

Comments
 (0)