code: function fixMessage( node ) {
        var textContent = node.textContent;
  
        var match =
           processToEqual( textContent ) ||
           processToHaveBeenCalledWith( textContent );
  
        if( !match ) {
           return;
        }
  
        node.setAttribute( 'title', textContent );
  
        var left = parse( match.left );
        var right = parse( match.right );
  
        const pre = document.createElement( 'pre' );
        pre.innerText = [
           match.prefix,
           format( left ),
           match.relationText,
           format( right )
        ].join( '\n\n' );
        node.innerHTML = '';
        node.appendChild( pre );
  
        var diffContainer;
        if( left.length !== right.length || jsondiffpatch.diff( left[ 0 ], right[ 0 ] ) ) {
           node.className = 'webpack-jasmine-fixup-json-message';
           node.addEventListener( 'click', function() {
              if( diffContainer ) {
                 diffContainer.parentNode.removeChild( diffContainer );
                 diffContainer = null;
                 return;
              }
              diffContainer = document.createElement( 'DIV' );
              diffContainer.innerHTML = '<h3>diff:</h3>';
              // multiple right values occur e.g. when using toHaveBeenCalledWith
              right.forEach( function( rightItem ) {
                 var delta = jsondiffpatch.diff( left[ 0 ], rightItem );
                 diffContainer.innerHTML += '<br>' + jsondiffpatch.formatters.html
                    .format( delta, left )
                    .replace( NEWLINE_MATCHER, '\n' );
              } );
              node.appendChild( diffContainer );
           } );
        }
     }
docs: /////////////////////////////////////////////////////////////////////////////////////////////////////////