File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1676,12 +1676,17 @@ describe('Client', () => {
16761676
16771677 client . captureEvent ( { message : 'hello' } , { } , scope ) ;
16781678
1679- expect ( TestClient . instance ! . event ! . exception ! . values ! [ 0 ] ) . toStrictEqual ( { type : 'Error' , value : 'sorry' } ) ;
1679+ expect ( TestClient . instance ! . event ! . exception ! . values ! [ 0 ] ) . toStrictEqual ( {
1680+ type : 'Error' ,
1681+ value : 'sorry' ,
1682+ mechanism : { type : 'internal' , handled : false } ,
1683+ } ) ;
16801684 expect ( captureExceptionSpy ) . toBeCalledWith ( exception , {
16811685 data : {
16821686 __sentry__ : true ,
16831687 } ,
16841688 originalException : exception ,
1689+ mechanism : { type : 'internal' , handled : false } ,
16851690 } ) ;
16861691 expect ( loggerWarnSpy ) . toBeCalledWith (
16871692 `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${ exception } ` ,
You can’t perform that action at this time.
0 commit comments