src/Tst.js
function htmlReporter(reports, options = {}) {
  var {hide} = options;
  hide = hide || {};

  function htmlReporterOne({children, desc, status, counts, time, code}) {
    var text = T(desc);
    var attrs = {class: {[status]: true}};
    if (children) {
      return E('details') .
        has([
          E('summary') . has([text, !hide.counts && T(` (${makeCounts(counts)})`)]) . is(attrs),
          E('div') . has(htmlReporter(children, options))
        ]) .
        is(hide.children ? {} : {open: true});
    } else {
      return E('div') . has(text) . is(attrs);
    }
  }

  return M(reports, htmlReporterOne);
}
function htmlReporter(reports, options = {}) {
  var {hide} = options;
  hide = hide || {};

  function htmlReporterOne({children, desc, status, counts, time, code}) {
    var text = T(desc);
    var attrs = {class: {[status]: true}};
    if (children) {
      return E('details') .
        has([
          E('summary') . has([text, !hide.counts && T(` (${makeCounts(counts)})`)]) . is(attrs),
          E('div') . has(htmlReporter(children, options))
        ]) .
        is(hide.children ? {} : {open: true});
    } else {
      return E('div') . has(text) . is(attrs);
    }
  }

  return M(reports, htmlReporterOne);
}
function htmlReporter ( reports , options = { } ) { var { hide } = options ; hide = hide || { } ; function htmlReporterOne ( { children , desc , status , counts , time , code } ) { var text = T ( desc ) ; var attrs = { class : { [ status ] : true } } ; if ( children ) { return E ( 'details' ) . has ( [ E ( 'summary' ) . has ( [ text , ! hide . counts && T ( ` ${ makeCounts ( counts ) } ` ) ] ) . is ( attrs ) , E ( 'div' ) . has ( htmlReporter ( children , options ) ) ] ) . is ( hide . children ? { } : { open : true } ) ; } else { return E ( 'div' ) . has ( text ) . is ( attrs ) ; } } return M ( reports , htmlReporterOne ) ; }
HTML reporter; returns an Array of DOM nodes.
HTML reporter ; returns an Array of DOM nodes .