@@ -67,7 +67,7 @@ function generateResults() {
67
67
Object . keys ( results . results ) . map ( ( name ) => [
68
68
name ,
69
69
{ [ results . results [ name ] ] : 1 } ,
70
- ] )
70
+ ] ) ,
71
71
) ;
72
72
73
73
return ;
@@ -80,7 +80,7 @@ function generateResults() {
80
80
for ( const name in results . children ) {
81
81
const childResults = results . children [ name ] ;
82
82
results . aggregatedResults = Object . keys (
83
- childResults . aggregatedResults
83
+ childResults . aggregatedResults ,
84
84
) . reduce ( ( acc , mode ) => {
85
85
if ( ! ( mode in acc ) ) acc [ mode ] = { } ;
86
86
const modeAcc = acc [ mode ] ;
@@ -109,7 +109,7 @@ function generateResults() {
109
109
summaryStatusLabel = document . getElementById ( "summary-status" ) ;
110
110
leafTreeNodeTemplate = document . getElementById ( "leaf-tree-node-template" ) ;
111
111
nonLeafTreeNodeTemplate = document . getElementById (
112
- "nonleaf-tree-node-template"
112
+ "nonleaf-tree-node-template" ,
113
113
) ;
114
114
115
115
// Now make a nice lazy-loaded collapsible tree in `resultsNode`.
@@ -192,7 +192,7 @@ function navigate() {
192
192
history . pushState (
193
193
{ pathInTree } ,
194
194
pathInTree [ pathInTree . length - 1 ] ,
195
- generateQueryString ( pathInTree )
195
+ generateQueryString ( pathInTree ) ,
196
196
) ;
197
197
regenerateResults ( resultsNode ) ;
198
198
}
@@ -235,10 +235,10 @@ function generateChildNode(childName, child, filepath) {
235
235
childNode . querySelector ( ".tree-node-name" ) . textContent = childName ;
236
236
childNode . querySelector ( ".tree-node-name" ) . title = filepath ;
237
237
childNode . querySelector ( ".tree-node-status" ) . innerHTML = generateStatus (
238
- child . aggregatedResults
238
+ child . aggregatedResults ,
239
239
) ;
240
240
childNode . querySelector ( ".tree-node-github-url" ) . href =
241
- window . config . generateGitHubURLFromTestPath ( filepath ) ;
241
+ window . config . generateGitHubURLFromTestPath ( filepath , childName ) ;
242
242
return childNode ;
243
243
}
244
244
@@ -266,12 +266,12 @@ let checkASTOnly = true;
266
266
function entryHasFilteredResultType ( [ , child ] ) {
267
267
if ( checkASTOnly && "AST" in child . aggregatedResults ) {
268
268
return Object . keys ( child . aggregatedResults . AST ) . some ( ( type ) =>
269
- shownResultTypes . has ( type )
269
+ shownResultTypes . has ( type ) ,
270
270
) ;
271
271
}
272
272
273
273
return Object . values ( child . aggregatedResults ) . some ( ( testType ) =>
274
- Object . keys ( testType ) . some ( ( type ) => shownResultTypes . has ( type ) )
274
+ Object . keys ( testType ) . some ( ( type ) => shownResultTypes . has ( type ) ) ,
275
275
) ;
276
276
}
277
277
@@ -294,7 +294,7 @@ function regenerateResults(targetNode) {
294
294
const childNode = generateChildNode (
295
295
childName ,
296
296
child ,
297
- `${ pathInTree . join ( "/" ) } /${ childName } `
297
+ `${ pathInTree . join ( "/" ) } /${ childName } ` ,
298
298
) ;
299
299
300
300
const isLeaf = child . children === null ;
@@ -320,7 +320,7 @@ function regenerateResults(targetNode) {
320
320
const childrenResults = searchResults (
321
321
child . children ,
322
322
false ,
323
- relativePath + "/"
323
+ relativePath + "/" ,
324
324
) ;
325
325
if ( isSearchedFor )
326
326
childrenResults . push ( [ childName , child , relativePath ] ) ;
@@ -348,7 +348,7 @@ function regenerateResults(targetNode) {
348
348
const childrenResults = filterInternal (
349
349
child . children ,
350
350
isSearchedFor ,
351
- relativePath + "/"
351
+ relativePath + "/" ,
352
352
) ;
353
353
if ( ! isSearchedFor && childrenResults . length === 0 && ! allChildren )
354
354
return [ ] ;
@@ -361,7 +361,7 @@ function regenerateResults(targetNode) {
361
361
362
362
let results = filterInternal (
363
363
result ,
364
- pathInTree . join ( "/" ) . toLowerCase ( ) . includes ( needle )
364
+ pathInTree . join ( "/" ) . toLowerCase ( ) . includes ( needle ) ,
365
365
) ;
366
366
367
367
while ( results . length === 1 && results [ 0 ] [ 3 ] !== null )
@@ -380,7 +380,7 @@ function regenerateResults(targetNode) {
380
380
const childNode = generateChildNode (
381
381
childName ,
382
382
child ,
383
- `${ pathInTree . join ( "/" ) } /${ relativePath } `
383
+ `${ pathInTree . join ( "/" ) } /${ relativePath } ` ,
384
384
) ;
385
385
386
386
if ( child . children !== null ) {
@@ -436,7 +436,7 @@ function generateStatus(aggregatedResults) {
436
436
const stats = aggregatedResults [ mode ] ;
437
437
const total = Object . keys ( stats ) . reduce (
438
438
( acc , name ) => acc + stats [ name ] ,
439
- 0
439
+ 0 ,
440
440
) ;
441
441
if ( total === 0 ) return acc ;
442
442
acc . push ( `<div class="mode-summary-container">
@@ -463,7 +463,7 @@ document.addEventListener("DOMContentLoaded", () => {
463
463
promises . push (
464
464
fetchData ( path )
465
465
. then ( ( response ) => response . json ( ) )
466
- . then ( ( data ) => initialize ( data , mode ) )
466
+ . then ( ( data ) => initialize ( data , mode ) ) ,
467
467
) ;
468
468
}
469
469
Promise . all ( promises ) . then ( ( ) => generateResults ( ) ) ;
0 commit comments