Skip to content

Commit

Permalink
Cleanup html.js and mocha.css
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Sep 30, 2024
1 parent 575870c commit 91e9fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 5 additions & 7 deletions lib/reporters/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ function HTML(runner, options) {
var stats = this.stats;
var stat = fragment(statsTemplate);
var items = stat.getElementsByTagName('li');
const [
resultIndex,
progressIndex,
passesIndex,
failuresIndex,
durationIndex
] = [0, 1, 2, 3, 4];
const resultIndex = 0;
const progressIndex = 1;
const passesIndex = 2;
const failuresIndex = 3;
const durationIndex = 4;
var results = items[resultIndex];
var passes = items[passesIndex].getElementsByTagName('em')[0];
var passesLink = items[passesIndex].getElementsByTagName('a')[0];
Expand Down
2 changes: 0 additions & 2 deletions mocha.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,7 @@ ul#mocha-stats {
}

#mocha-stats.fail {
border: solid;
border-color: var(--mocha-test-fail-border-color);
border-radius: 10px;
}

#mocha-stats .fail {
Expand Down

0 comments on commit 91e9fa1

Please sign in to comment.