lib/mocha.js
function text(el, str) {
  if (el.textContent) {
    el.textContent = str;
  } else {
    el.innerText = str;
  }
}
function text(el, str) {
  if (el.textContent) {
    el.textContent = str;
  } else {
    el.innerText = str;
  }
}
function text ( el , str ) { if ( el . textContent ) { el . textContent = str ; } else { el . innerText = str ; } }
Set `el` text to `str`.
Set el text to str .