@@ -769,11 +769,13 @@ describe('globals', function() {
769
769
processException ( 'Error' , 'lol' , 'http://example.com/override.js' , 10 , frames . slice ( 0 ) , { } ) ;
770
770
assert . deepEqual ( window . send . lastCall . args , [ {
771
771
exception : {
772
- type : 'Error' ,
773
- value : 'lol'
774
- } ,
775
- stacktrace : {
776
- frames : framesFlipped
772
+ values : [ {
773
+ type : 'Error' ,
774
+ value : 'lol' ,
775
+ stacktrace : {
776
+ frames : framesFlipped
777
+ }
778
+ } ]
777
779
} ,
778
780
culprit : 'http://example.com/file1.js' ,
779
781
message : 'Error: lol'
@@ -782,11 +784,13 @@ describe('globals', function() {
782
784
processException ( 'Error' , 'lol' , '' , 10 , frames . slice ( 0 ) , { } ) ;
783
785
assert . deepEqual ( window . send . lastCall . args , [ {
784
786
exception : {
785
- type : 'Error' ,
786
- value : 'lol'
787
- } ,
788
- stacktrace : {
789
- frames : framesFlipped
787
+ values : [ {
788
+ type : 'Error' ,
789
+ value : 'lol' ,
790
+ stacktrace : {
791
+ frames : framesFlipped
792
+ }
793
+ } ]
790
794
} ,
791
795
culprit : 'http://example.com/file1.js' ,
792
796
message : 'Error: lol'
@@ -795,11 +799,13 @@ describe('globals', function() {
795
799
processException ( 'Error' , 'lol' , '' , 10 , frames . slice ( 0 ) , { extra : 'awesome' } ) ;
796
800
assert . deepEqual ( window . send . lastCall . args , [ {
797
801
exception : {
798
- type : 'Error' ,
799
- value : 'lol'
800
- } ,
801
- stacktrace : {
802
- frames : framesFlipped
802
+ values : [ {
803
+ type : 'Error' ,
804
+ value : 'lol' ,
805
+ stacktrace : {
806
+ frames : framesFlipped
807
+ }
808
+ } ]
803
809
} ,
804
810
culprit : 'http://example.com/file1.js' ,
805
811
message : 'Error: lol' ,
@@ -813,14 +819,16 @@ describe('globals', function() {
813
819
processException ( 'Error' , 'lol' , 'http://example.com/override.js' , 10 , [ ] , { } ) ;
814
820
assert . deepEqual ( window . send . lastCall . args , [ {
815
821
exception : {
816
- type : 'Error' ,
817
- value : 'lol'
818
- } ,
819
- stacktrace : {
820
- frames : [ {
821
- filename : 'http://example.com/override.js' ,
822
- lineno : 10 ,
823
- in_app : true
822
+ values : [ {
823
+ type : 'Error' ,
824
+ value : 'lol' ,
825
+ stacktrace : {
826
+ frames : [ {
827
+ filename : 'http://example.com/override.js' ,
828
+ lineno : 10 ,
829
+ in_app : true
830
+ } ]
831
+ }
824
832
} ]
825
833
} ,
826
834
culprit : 'http://example.com/override.js' ,
@@ -830,14 +838,16 @@ describe('globals', function() {
830
838
processException ( 'Error' , 'lol' , 'http://example.com/override.js' , 10 , [ ] , { } ) ;
831
839
assert . deepEqual ( window . send . lastCall . args , [ {
832
840
exception : {
833
- type : 'Error' ,
834
- value : 'lol'
835
- } ,
836
- stacktrace : {
837
- frames : [ {
838
- filename : 'http://example.com/override.js' ,
839
- lineno : 10 ,
840
- in_app : true
841
+ values : [ {
842
+ type : 'Error' ,
843
+ value : 'lol' ,
844
+ stacktrace : {
845
+ frames : [ {
846
+ filename : 'http://example.com/override.js' ,
847
+ lineno : 10 ,
848
+ in_app : true
849
+ } ]
850
+ }
841
851
} ]
842
852
} ,
843
853
culprit : 'http://example.com/override.js' ,
@@ -847,14 +857,16 @@ describe('globals', function() {
847
857
processException ( 'Error' , 'lol' , 'http://example.com/override.js' , 10 , [ ] , { extra : 'awesome' } ) ;
848
858
assert . deepEqual ( window . send . lastCall . args , [ {
849
859
exception : {
850
- type : 'Error' ,
851
- value : 'lol'
852
- } ,
853
- stacktrace : {
854
- frames : [ {
855
- filename : 'http://example.com/override.js' ,
856
- lineno : 10 ,
857
- in_app : true
860
+ values : [ {
861
+ type : 'Error' ,
862
+ value : 'lol' ,
863
+ stacktrace : {
864
+ frames : [ {
865
+ filename : 'http://example.com/override.js' ,
866
+ lineno : 10 ,
867
+ in_app : true
868
+ } ]
869
+ }
858
870
} ]
859
871
} ,
860
872
culprit : 'http://example.com/override.js' ,
@@ -879,14 +891,16 @@ describe('globals', function() {
879
891
assert . deepEqual ( window . send . lastCall . args , [ {
880
892
message : 'TypeError: ' + new Array ( 140 ) . join ( 'a' ) + '\u2026' ,
881
893
exception : {
882
- type : 'TypeError' ,
883
- value : new Array ( 151 ) . join ( 'a' ) + '\u2026'
884
- } ,
885
- stacktrace : {
886
- frames : [ {
887
- filename : 'http://example.com' ,
888
- lineno : 34 ,
889
- in_app : true
894
+ values : [ {
895
+ type : 'TypeError' ,
896
+ value : new Array ( 151 ) . join ( 'a' ) + '\u2026' ,
897
+ stacktrace : {
898
+ frames : [ {
899
+ filename : 'http://example.com' ,
900
+ lineno : 34 ,
901
+ in_app : true
902
+ } ]
903
+ }
890
904
} ]
891
905
} ,
892
906
culprit : 'http://example.com' ,
@@ -1192,7 +1206,7 @@ describe('globals', function() {
1192
1206
assert . deepEqual ( opts . auth , {
1193
1207
sentry_client : 'raven-js/<%= pkg.version %>' ,
1194
1208
sentry_key : 'abc' ,
1195
- sentry_version : '4 '
1209
+ sentry_version : '7 '
1196
1210
} ) ;
1197
1211
assert . deepEqual ( opts . options , globalOptions ) ;
1198
1212
assert . isFunction ( opts . onSuccess ) ;
0 commit comments