File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,10 @@ module.exports = function () {
108
108
} ) ;
109
109
110
110
this . When ( / ^ a d d i n g a c o p y o f m a p M t o m a p M $ / , function ( ) {
111
- var copyt_of_map = Object . assign ( { } , this . M ) ;
112
- this . M [ "a" + sizeOfObject ( this . M ) ] = copyt_of_map ;
111
+ var copyt_of_map = { }
112
+ for ( var key in this . M ) {
113
+ copyt_of_map [ key ] = this . M [ key ]
114
+ }
113
115
} ) ;
114
116
115
117
this . When ( / ^ t h e d r i v e r a s k s t h e s e r v e r t o e c h o t h i s v a l u e b a c k $ / , function ( ) {
@@ -256,7 +258,7 @@ module.exports = function () {
256
258
if ( sizeOfObject ( one ) != sizeOfObject ( other ) ) return false ;
257
259
for ( var i = 0 ; i < one . length ; ++ i ) {
258
260
if ( ! compareValues ( one [ i ] , other [ i ] ) ) {
259
- console . log ( "Miss-match at index: [" + i + "] Values should be same but was : [" + one [ i ] + "] and : [" + other [ i ] + "]" ) ;
261
+ console . log ( "Mismatch at index: [" + i + "] Values should be same but was : [" + one [ i ] + "] and : [" + other [ i ] + "]" ) ;
260
262
return false ;
261
263
}
262
264
}
@@ -268,7 +270,7 @@ module.exports = function () {
268
270
for ( var key in one ) {
269
271
if ( typeof other [ key ] == "undefined" ) return false ;
270
272
if ( ! compareValues ( one [ key ] , other [ key ] ) ) {
271
- console . log ( "Miss-match at key: [" + key + "] Values should be same but was : [" + one [ key ] + "] and : [" + other [ key ] + "]" ) ;
273
+ console . log ( "Mismatch at key: [" + key + "] Values should be same but was : [" + one [ key ] + "] and : [" + other [ key ] + "]" ) ;
272
274
return false ;
273
275
}
274
276
}
You can’t perform that action at this time.
0 commit comments