Skip to content

Commit d2eadae

Browse files
authored
Merge pull request #146 from JetBrains/ktl-649-fix-empty-junit-run
KTL-649 Playground - Run JUNIT with an empty state leads to JS error
2 parents 3be3c20 + 9dbbcf0 commit d2eadae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kotlin-playground",
3-
"version": "1.27.1",
3+
"version": "1.27.2",
44
"description": "Self-contained component to embed in websites for running Kotlin code",
55
"keywords": [
66
"kotlin",

src/webdemo-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default class WebDemoApi {
9999
if (data.text) output = processJVMOutput(data.text, theme);
100100
break;
101101
case TargetPlatform.JUNIT:
102-
data.testResults ? output = processJUnitResults(data.testResults, onTestPassed, onTestFailed) : output = processJVMOutput(data.text, theme);
102+
data.testResults ? output = processJUnitResults(data.testResults, onTestPassed, onTestFailed) : output = processJVMOutput(data.text || '', theme);
103103
break;
104104
}
105105
}

0 commit comments

Comments
 (0)