Skip to content

Commit c6ebf80

Browse files
committed
format function calls
1 parent a785b2a commit c6ebf80

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/testResultsSummary.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,18 @@ function generateTestFileRow(file: MatlabTestFile): string {
9999
<tr>
100100
<td>
101101
<details>
102-
<summary><b title="${file.path}">${statusEmoji} ${file.name}</b></summary>
102+
<summary><b title="` + file.path + `">` + statusEmoji + " " + file.name + `</b></summary>
103103
<table>
104104
<tr>
105105
<th>Test</th>
106106
<th>Diagnostics</th>
107107
<th>Duration(s)</th>
108-
</tr>
109-
${file.testCases.map(tc => generateTestCaseRow(tc)).join('\n')}
110-
</table>
108+
</tr>` +
109+
file.testCases.map(tc => generateTestCaseRow(tc)).join('\n') +
110+
`</table>
111111
</details>
112112
</td>
113-
<td align="center" valign="top"><b>${file.duration.toFixed(2)}</b></td>
113+
<td align="center" valign="top"><b>` + file.duration.toFixed(2) + `</b></td>
114114
</tr>`;
115115
}
116116

@@ -133,15 +133,15 @@ function generateTestCaseRow(testCase: MatlabTestCase): string {
133133
<td>-0.167</td>
134134
</tr>
135135
</table>
136-
<pre style="font-family: monospace; white-space: pre;">${testCase.diagnostics.map(d => formatDiagnosticReport(d.report)).join('\n')}</pre>
136+
<pre style="font-family: monospace; white-space: pre;">` + testCase.diagnostics.map(d => formatDiagnosticReport(d.report)).join('\n') + `</pre>
137137
</details>`
138138
: '';
139139

140140
return `
141141
<tr>
142-
<td>${statusEmoji} ${testCase.name}</td>
143-
<td>${diagnosticsColumn}</td>
144-
<td align="center">${testCase.duration.toFixed(2)}</td>
142+
<td>` + statusEmoji + " " + testCase.name + `</td>
143+
<td>` + diagnosticsColumn + `</td>
144+
<td align="center">` + testCase.duration.toFixed(2) + `</td>
145145
</tr>`;
146146
}
147147

0 commit comments

Comments
 (0)