File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1040,7 +1040,7 @@ describe('Raven (public API)', function() {
1040
1040
} ) ;
1041
1041
1042
1042
it ( 'should return the result of a wrapped function' , function ( ) {
1043
- var func = function ( ) { return 'foo' } ;
1043
+ var func = function ( ) { return 'foo' ; } ;
1044
1044
var wrapped = Raven . wrap ( func ) ;
1045
1045
assert . equal ( wrapped ( ) , 'foo' ) ;
1046
1046
} ) ;
@@ -1063,6 +1063,16 @@ describe('Raven (public API)', function() {
1063
1063
assert . isTrue ( spy . calledOnce ) ;
1064
1064
} ) ;
1065
1065
1066
+ it ( 'should not wrap function arguments' , function ( ) {
1067
+ var spy = this . sinon . spy ( ) ;
1068
+ var wrapped = Raven . wrap ( { deep : false } , function ( f ) {
1069
+ assert . isTrue ( f . __raven__ ) ;
1070
+ f ( ) ;
1071
+ } ) ;
1072
+ wrapped ( spy ) ;
1073
+ assert . isFalse ( spy . calledOnce ) ;
1074
+ } ) ;
1075
+
1066
1076
it ( 'should maintain the correct scope' , function ( ) {
1067
1077
var foo = { } ;
1068
1078
var bar = function ( ) {
You can’t perform that action at this time.
0 commit comments