@@ -691,6 +691,14 @@ describe('globals', function() {
691
691
assert . isTrue ( window . send . calledOnce ) ;
692
692
} ) ;
693
693
694
+ it ( 'should handle empty `ignoreErrors`' , function ( ) {
695
+ this . sinon . stub ( window , 'send' ) ;
696
+
697
+ globalOptions . ignoreErrors = [ ] ;
698
+ processException ( 'Error' , 'e1' , 'http://example.com' , [ ] ) ;
699
+ assert . isTrue ( window . send . calledOnce ) ;
700
+ } ) ;
701
+
694
702
it ( 'should respect `ignoreUrls`' , function ( ) {
695
703
this . sinon . stub ( window , 'send' ) ;
696
704
@@ -703,6 +711,14 @@ describe('globals', function() {
703
711
assert . isTrue ( window . send . calledOnce ) ;
704
712
} ) ;
705
713
714
+ it ( 'should handle empty `ignoreUrls`' , function ( ) {
715
+ this . sinon . stub ( window , 'send' ) ;
716
+
717
+ globalOptions . ignoreUrls = [ ] ;
718
+ processException ( 'Error' , 'e1' , 'http://example.com' , [ ] ) ;
719
+ assert . isTrue ( window . send . calledOnce ) ;
720
+ } ) ;
721
+
706
722
it ( 'should respect `whitelistUrls`' , function ( ) {
707
723
this . sinon . stub ( window , 'send' ) ;
708
724
@@ -715,6 +731,14 @@ describe('globals', function() {
715
731
assert . equal ( window . send . callCount , 2 ) ;
716
732
} ) ;
717
733
734
+ it ( 'should handle empty `whitelistUrls`' , function ( ) {
735
+ this . sinon . stub ( window , 'send' ) ;
736
+
737
+ globalOptions . whitelistUrls = [ ] ;
738
+ processException ( 'Error' , 'e1' , 'http://example.com' , [ ] ) ;
739
+ assert . isTrue ( window . send . calledOnce ) ;
740
+ } ) ;
741
+
718
742
it ( 'should send a proper payload with frames' , function ( ) {
719
743
this . sinon . stub ( window , 'send' ) ;
720
744
0 commit comments