You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2024/05/30 06:25:43 UTC
(camel-quarkus) branch main updated: Use more robust type check in test report action for test case names
This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new abcb87176d Use more robust type check in test report action for test case names
abcb87176d is described below
commit abcb87176d08ad9becdbecc75044e35fb769daea
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed May 29 13:53:01 2024 +0100
Use more robust type check in test report action for test case names
---
.github/actions/test-summary-report/action.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/actions/test-summary-report/action.yaml b/.github/actions/test-summary-report/action.yaml
index abf4a356d6..118fc3024c 100644
--- a/.github/actions/test-summary-report/action.yaml
+++ b/.github/actions/test-summary-report/action.yaml
@@ -69,7 +69,7 @@ runs:
const details = `<details><summary>View</summary>\n<pre>${failure[0].inner}</pre></details>`;
let testName = "";
- if (testCase.name !== undefined && testCase.name.trim().length > 0) {
+ if ((typeof testCase.name === 'string' || testCase.name instanceof String) && (testCase.name.trim().length > 0)) {
testName = `<code>${testCase.name}</code>`;
if (testCase.name.trim().length > 25) {
testName = `<details><summary>View</summary>\n<code>${testCase.name}</code></details>`;