index.js
function style() {
  var testsAre = 'pending';

  if (failed > 0) {
    testsAre = 'failing';
  }
  else if (passed > 0) {
    testsAre = 'passing';
  }

  document.body.style.borderTopColor = richColors[testsAre];
  faviconEl.setAttribute('href', favicons[testsAre]);
  document.body.style.backgroundColor = colors[testsAre];
}
function style() {
  var testsAre = 'pending';

  if (failed > 0) {
    testsAre = 'failing';
  }
  else if (passed > 0) {
    testsAre = 'passing';
  }

  document.body.style.borderTopColor = richColors[testsAre];
  faviconEl.setAttribute('href', favicons[testsAre]);
  document.body.style.backgroundColor = colors[testsAre];
}
function style ( ) { var testsAre = 'pending' ; if ( failed > 0 ) { testsAre = 'failing' ; } else if ( passed > 0 ) { testsAre = 'passing' ; } document . body . style . borderTopColor = richColors [ testsAre ] ; faviconEl . setAttribute ( 'href' , favicons [ testsAre ] ) ; document . body . style . backgroundColor = colors [ testsAre ] ; }
Style the page
Style the page