File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ function setTestResults(results) {
115115 return `
116116 <p>Testcase Name: ${ test . testcase_name } </p>
117117 <p>Status: ${ test . status } </p>
118- ${ test . actual ? `<p>Actual: ${ test . actual } </p>` : '' }
119- ${ test . expected ? `<p>Expected: ${ test . expected } </p>` : '' }
118+ ${ test . actual ? `<p>Actual: ${ JSON . stringify ( test . actual ) } </p>` : '' }
119+ ${ test . expected ? `<p>Expected: ${ JSON . stringify ( test . expected ) } </p>` : '' }
120120 ${ test . reason ? `<p>Reason: ${ test . reason } </p>` : '' }
121121 ${ testcase ? `<p>Testcase: ${ testcase } </p>` : '' }
122122 <hr>
@@ -201,7 +201,7 @@ function setCustomTestcaseResults(results) {
201201
202202 document . getElementById ( 'testcase-stdout' ) . textContent = results . stdout ;
203203 document . getElementById ( 'testcase-output' ) . textContent =
204- results . tests [ 0 ] . actual ;
204+ JSON . stringify ( results . tests [ 0 ] . actual ) ;
205205
206206 run ( setExpectedTestcaseResults , directoryManager . getCustomTestcaseName ( ) ,
207207 true ) ;
@@ -226,7 +226,7 @@ function setExpectedTestcaseResults(expected) {
226226 }
227227
228228 document . getElementById ( 'expected-output' ) . textContent =
229- expected . tests [ 0 ] . actual ;
229+ JSON . stringify ( expected . tests [ 0 ] . actual ) ;
230230}
231231
232232function runCustomTestcase ( ) {
You can’t perform that action at this time.
0 commit comments