@@ -633,7 +633,7 @@ describe('globals', function() {
633
633
} ) ;
634
634
} ) ;
635
635
636
- it ( 'should create and append \'error \' breadcrumb' , function ( ) {
636
+ it ( 'should create and append \'sentry \' breadcrumb' , function ( ) {
637
637
this . sinon . stub ( Raven , 'isSetup' ) . returns ( true ) ;
638
638
this . sinon . stub ( Raven , '_makeRequest' ) ;
639
639
this . sinon . stub ( Raven , '_getHttpData' ) . returns ( {
@@ -652,7 +652,14 @@ describe('globals', function() {
652
652
653
653
assert . deepEqual ( Raven . _breadcrumbs , [
654
654
{ type : 'http' , timestamp : 0.1 , data : { method : 'POST' , url : 'http://example.org/api/0/auth/' } } ,
655
- { category : 'sentry' , message : 'bar' , timestamp : 0.1 , /* 100ms */ event_id : 'abc123' }
655
+ { category : 'sentry' , message : 'bar' , timestamp : 0.1 , /* 100ms */ event_id : 'abc123' , level : 'error' }
656
+ ] ) ;
657
+
658
+ Raven . _send ( { message : 'foo' , level : 'warning' } ) ;
659
+ assert . deepEqual ( Raven . _breadcrumbs , [
660
+ { type : 'http' , timestamp : 0.1 , data : { method : 'POST' , url : 'http://example.org/api/0/auth/' } } ,
661
+ { category : 'sentry' , message : 'bar' , timestamp : 0.1 , /* 100ms */ event_id : 'abc123' , level : 'error' } ,
662
+ { category : 'sentry' , message : 'foo' , timestamp : 0.1 , /* 100ms */ event_id : 'abc123' , level : 'warning' }
656
663
] ) ;
657
664
} ) ;
658
665
0 commit comments