@@ -691,6 +691,14 @@ describe('globals', function() {
691691 assert . isTrue ( window . send . calledOnce ) ;
692692 } ) ;
693693
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+
694702 it ( 'should respect `ignoreUrls`' , function ( ) {
695703 this . sinon . stub ( window , 'send' ) ;
696704
@@ -703,6 +711,14 @@ describe('globals', function() {
703711 assert . isTrue ( window . send . calledOnce ) ;
704712 } ) ;
705713
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+
706722 it ( 'should respect `whitelistUrls`' , function ( ) {
707723 this . sinon . stub ( window , 'send' ) ;
708724
@@ -715,6 +731,14 @@ describe('globals', function() {
715731 assert . equal ( window . send . callCount , 2 ) ;
716732 } ) ;
717733
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+
718742 it ( 'should send a proper payload with frames' , function ( ) {
719743 this . sinon . stub ( window , 'send' ) ;
720744
0 commit comments