File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -108,8 +108,10 @@ module.exports = function () {
108108 } ) ;
109109
110110 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+ }
113115 } ) ;
114116
115117 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 () {
256258 if ( sizeOfObject ( one ) != sizeOfObject ( other ) ) return false ;
257259 for ( var i = 0 ; i < one . length ; ++ i ) {
258260 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 ] + "]" ) ;
260262 return false ;
261263 }
262264 }
@@ -268,7 +270,7 @@ module.exports = function () {
268270 for ( var key in one ) {
269271 if ( typeof other [ key ] == "undefined" ) return false ;
270272 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 ] + "]" ) ;
272274 return false ;
273275 }
274276 }
You can’t perform that action at this time.
0 commit comments