fengmk2
2025-02-13 02:20:02 +00:00
parent 9a17422d36
commit 0ce4cc8609
6 changed files with 48 additions and 16 deletions
@@ -170,7 +170,13 @@ test('should be able to handle unknown internal error in http request', async t
.expect(HttpStatus.INTERNAL_SERVER_ERROR);
t.is(res.body.message, 'An internal error occurred.');
t.is(res.body.name, 'INTERNAL_SERVER_ERROR');
t.true(t.context.logger.error.calledOnceWith('internal_server_error'));
t.true(
t.context.logger.error.calledOnceWith(
`internal_server_error (${JSON.stringify({
requestId: res.body.requestId,
})})`
)
);
});
// Hard to test through websocket, will call event handler directly