@@ -55,7 +55,7 @@ class TestSummaryReporter {
55
55
if ( this . testResult . stats . failed > 0 ) {
56
56
this . summary = this . summary . addHeading ( 'Failed tests' , 3 ) ;
57
57
this . summary = this . summary
58
- . addRaw ( this . generateAccordian ( '' , null , this . testResult . failedTests ) )
58
+ . addRaw ( this . generateAccordion ( '' , null , this . testResult . failedTests ) )
59
59
. addSeparator ( ) ;
60
60
}
61
61
this . writeStatsTable ( ) ;
@@ -68,31 +68,31 @@ class TestSummaryReporter {
68
68
}
69
69
}
70
70
71
- generateAccordian ( suitePrefix , suiteName , suiteObject ) {
71
+ generateAccordion ( suitePrefix , suiteName , suiteObject ) {
72
72
if ( typeof suiteObject !== 'object' ) {
73
73
// Item is a test, not a suite
74
74
return `${ suitePrefix } ❌ ${ suiteObject } <br />` ;
75
75
}
76
76
let detailsContent = '' ;
77
77
78
- // Generate accordian for each item in suite
78
+ // Generate accordion for each item in suite
79
79
Object . keys ( suiteObject ) . forEach (
80
80
( item ) =>
81
81
( detailsContent =
82
82
detailsContent +
83
- this . generateAccordian (
83
+ this . generateAccordion (
84
84
`${ suitePrefix } ${ this . suiteIndenter } ` ,
85
85
item ,
86
86
suiteObject [ item ]
87
87
) )
88
88
) ;
89
89
90
- // First level does not require accordian
90
+ // First level does not require accordion
91
91
if ( suiteName === null ) {
92
92
return detailsContent ;
93
93
}
94
94
95
- // Return an accordian for the suite
95
+ // Return an accordion for the suite
96
96
return `
97
97
<details>
98
98
<summary>${ suitePrefix } ${ suiteName } </summary>
0 commit comments