File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -601,19 +601,17 @@ describe('raven.parsers', function () {
601
601
602
602
it ( 'should parse an error with additional information' , function ( done ) {
603
603
try {
604
- assert . strictEqual ( 1 , 2 ) ;
604
+ var err = new Error ( 'boom' ) ;
605
+ err . prop = 'value' ;
606
+ throw err ;
605
607
} catch ( e ) {
606
608
raven . parsers . parseError ( e , { } , function ( parsed ) {
607
609
parsed . should . have . property ( 'exception' ) ;
608
610
parsed . exception [ 0 ] . stacktrace . should . have . property ( 'frames' ) ;
609
611
parsed . should . have . property ( 'extra' ) ;
610
- parsed . extra . should . have . property ( 'AssertionError' ) ;
611
- parsed . extra . AssertionError . should . have . property ( 'actual' ) ;
612
- parsed . extra . AssertionError . actual . should . equal ( 1 ) ;
613
- parsed . extra . AssertionError . should . have . property ( 'expected' ) ;
614
- parsed . extra . AssertionError . expected . should . equal ( 2 ) ;
615
- parsed . extra . AssertionError . should . have . property ( 'operator' ) ;
616
- parsed . extra . AssertionError . operator . should . equal ( '===' ) ;
612
+ parsed . extra . should . have . property ( 'Error' ) ;
613
+ parsed . extra . Error . should . have . property ( 'prop' ) ;
614
+ parsed . extra . Error . prop . should . equal ( 'value' ) ;
617
615
done ( ) ;
618
616
} ) ;
619
617
}
You can’t perform that action at this time.
0 commit comments