@@ -121,17 +121,17 @@ describe('match', function() {
121
121
122
122
err ( function ( ) {
123
123
( { a : 10 , b : 'abc' , c : { d : 10 } , d : 0 } ) . should
124
- . match ( { a : 11 , b : / c $ / , c : function ( it ) {
124
+ . match ( { a : 11 , b : / c $ / , c : function c ( it ) {
125
125
return it . should . have . property ( 'd' , 10 ) ;
126
126
} } ) ;
127
- } , "expected Object { a: 10, b: 'abc', c: Object { d: 10 }, d: 0 } to match Object { a: 11, b: /c$/, c: Function { name: '' } }\n not matched properties: a (10)\n matched properties: b, c" ) ;
127
+ } , "expected Object { a: 10, b: 'abc', c: Object { d: 10 }, d: 0 } to match Object { a: 11, b: /c$/, c: Function { name: 'c ' } }\n not matched properties: a (10)\n matched properties: b, c" ) ;
128
128
129
129
err ( function ( ) {
130
130
( { a : 10 , b : 'abc' , c : { d : 10 } , d : 0 } ) . should . not
131
- . match ( { a : 10 , b : / c $ / , c : function ( it ) {
131
+ . match ( { a : 10 , b : / c $ / , c : function c ( it ) {
132
132
return it . should . have . property ( 'd' , 10 ) ;
133
133
} } ) ;
134
- } , "expected Object { a: 10, b: 'abc', c: Object { d: 10 }, d: 0 } not to match Object { a: 10, b: /c$/, c: Function { name: '' } }\n matched properties: a, b, c (false negative fail)" ) ;
134
+ } , "expected Object { a: 10, b: 'abc', c: Object { d: 10 }, d: 0 } not to match Object { a: 10, b: /c$/, c: Function { name: 'c ' } }\n matched properties: a, b, c (false negative fail)" ) ;
135
135
} ) ;
136
136
137
137
it ( 'test each property match(function)' , function ( ) {
0 commit comments