You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(result).to.deep.equal({multiValueHeaders: {'content-type': ['application/json']},statusCode: 500,body: '{"error":"This is a test error message"}',isBase64Encoded: false})
337
346
})// end it
338
347
348
+
it('Should not log error if option logger.errorLogging is false',asyncfunction(){
expect(result).to.deep.equal({multiValueHeaders: {'content-type': ['application/json']},statusCode: 500,body: '{"error":"This is a test thrown error"}',isBase64Encoded: false})
356
+
expect(_log).to.equal(undefined)
357
+
})
358
+
359
+
it('Should log error if option logger.errorLogging is true',asyncfunction(){
expect(result).to.deep.equal({multiValueHeaders: {'content-type': ['application/json']},statusCode: 500,body: '{"error":"This is a test thrown error"}',isBase64Encoded: false})
367
+
expect(_log.level).to.equal('fatal')
368
+
expect(_log.msg).to.equal('This is a test thrown error')
0 commit comments