File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ describe('ErrorBoundary', () => {
386
386
const mockOnError = jest . fn ( ) ;
387
387
388
388
function CustomBam ( ) : JSX . Element {
389
- const error = new Error ( 'bam ' ) ;
389
+ const error = new Error ( 'Error example ' ) ;
390
390
// The cause message with 610 characters
391
391
const cause = new Error ( 'This is a very long cause message that exceeds 250 characters ' . repeat ( 10 ) ) ;
392
392
// @ts -ignore Need to set cause on error
@@ -414,9 +414,8 @@ describe('ErrorBoundary', () => {
414
414
expect ( mockOnError . mock . calls [ 0 ] [ 0 ] ) . toEqual ( mockCaptureException . mock . calls [ 0 ] [ 0 ] ) ;
415
415
416
416
const error = mockCaptureException . mock . calls [ 0 ] [ 0 ] ;
417
- const cause = error . cause ;
418
417
// We need to make sure that the length of the cause message is 250
419
- expect ( cause . message ) . toHaveLength ( 250 ) ;
418
+ expect ( error . cause . message ) . toHaveLength ( 250 ) ;
420
419
} ) ;
421
420
422
421
it ( 'calls `beforeCapture()` when an error occurs' , ( ) => {
You can’t perform that action at this time.
0 commit comments