Skip to content

Commit 521868f

Browse files
committed
fix typo for the word 'accordion'
1 parent 23469f3 commit 521868f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/ci-test-summary.cjs

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class TestSummaryReporter {
5555
if (this.testResult.stats.failed > 0) {
5656
this.summary = this.summary.addHeading('Failed tests', 3);
5757
this.summary = this.summary
58-
.addRaw(this.generateAccordian('', null, this.testResult.failedTests))
58+
.addRaw(this.generateAccordion('', null, this.testResult.failedTests))
5959
.addSeparator();
6060
}
6161
this.writeStatsTable();
@@ -68,31 +68,31 @@ class TestSummaryReporter {
6868
}
6969
}
7070

71-
generateAccordian(suitePrefix, suiteName, suiteObject) {
71+
generateAccordion(suitePrefix, suiteName, suiteObject) {
7272
if (typeof suiteObject !== 'object') {
7373
// Item is a test, not a suite
7474
return `${suitePrefix}${suiteObject}<br />`;
7575
}
7676
let detailsContent = '';
7777

78-
// Generate accordian for each item in suite
78+
// Generate accordion for each item in suite
7979
Object.keys(suiteObject).forEach(
8080
(item) =>
8181
(detailsContent =
8282
detailsContent +
83-
this.generateAccordian(
83+
this.generateAccordion(
8484
`${suitePrefix}${this.suiteIndenter}`,
8585
item,
8686
suiteObject[item]
8787
))
8888
);
8989

90-
// First level does not require accordian
90+
// First level does not require accordion
9191
if (suiteName === null) {
9292
return detailsContent;
9393
}
9494

95-
// Return an accordian for the suite
95+
// Return an accordion for the suite
9696
return `
9797
<details>
9898
<summary>${suitePrefix}${suiteName}</summary>

0 commit comments

Comments
 (0)