Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sth committed Jan 7, 2024
1 parent baecb3c commit a4d06a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ var SummaryReporter = function(baseReporterDecorator, config) {
if (i < currentPath.length && s != currentPath[i]) {
currentPath.length = i;
}
// Print the parts after the common prefix.
// If we don't have anything more than the common prefix, print the last path element.
if (i >= currentPath.length || i == path.length - 1) {
var label = indent + s;
if (label.length > specLength) {
Expand Down

0 comments on commit a4d06a0

Please sign in to comment.