code: async function (formattedTransactionReceipt, eventName) {
      const formattedEvents = await web3EventsFormatter.perform(formattedTransactionReceipt);
  
      const eventData = formattedEvents[eventName];
      if (eventData === undefined || eventData === '') {
        logger.error("Event: " + eventName + " is not found");
        logger.info(" eventData ");
        logger.info(eventData);
        process.exit(1);
      } else {
        logger.win(" event: " + eventName + " is present in Reciept.");
      }
    }
docs: Assert event
  
  @param {object} formattedTransactionReceipt - formatted transaction receipt object
  @param {string} eventName - event name
  
  @return {promise<result>}