function processResult(result) {
      result.logs.forEach(function(log) {
        if (log.event == "TestEvent" && log.args.result == false) {
          throw new Error(log.args.message);
        }
      })
    }
// Function that checks transaction logs to see if a test failed.
Function that checks transaction logs to see if a test failed.
Function that checks transaction logs to see if a test failed .
function processResult(result) {
      result.logs.forEach(function(log) {
        if (log.event == "TestEvent" && log.args.result == false) {
          throw new Error(log.args.message);
        }
      })
    }
function processResult ( result ) { result . logs . forEach ( function ( log ) { if ( log . event == "TestEvent" && log . args . result == false ) { throw new Error ( log . args . message ) ; } } ) }
Function that checks transaction logs to see if a test failed.
Function that checks transaction logs to see if a test failed .