From a4d06a01474ed12e1f533411b3b622aae4ea1715 Mon Sep 17 00:00:00 2001 From: Stephan Hohe Date: Sun, 7 Jan 2024 14:09:20 +0100 Subject: [PATCH] Add comment --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index ccd8a18..0274a5c 100644 --- a/index.js +++ b/index.js @@ -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) {