docs: function( step ) {
        var stack = step.stack;
        var message = step.message;
  
        if( stack ) {
           // remove the trailing dot
           var firstLine = stack.substring( 0, stack.indexOf( '\n' ) - 1 );
  
           if( message && message.indexOf( firstLine ) === -1 ) {
              stack = message + '\n' + stack;
           }
  
           // remove jasmine stack entries
           return stack.replace( /\n.+jasmine\.js\?\w*\:.+(?=(\n|$))/g, '' );
        }
  
        return message;
     }