From 506c983668848ce8af8999df3b68ed3c8bfbf16b Mon Sep 17 00:00:00 2001 From: "A.J. Kaptijn" Date: Fri, 22 Mar 2024 00:49:40 +0100 Subject: [PATCH] zo dan --- dist/index.js | 3 ++- src/main.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 23194e9e..75e2141 100644 --- a/dist/index.js +++ b/dist/index.js @@ -381,7 +381,8 @@ class TestReporter { results.map((tr, runIndex) => { if (tr.failed === 0) return; - const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')).slice(0, tr.path.indexOf('test/')); + let runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')); + runName = runName.slice(0, tr.path.indexOf('test/')); req.blocks.push({ type: 'section', text: { diff --git a/src/main.ts b/src/main.ts index dd86117..df6e6c3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -326,7 +326,8 @@ class TestReporter { results.map((tr, runIndex) => { if (tr.failed === 0) return - const runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')).slice(0, tr.path.indexOf('test/')) + let runName = tr.path.slice(0, tr.path.indexOf('/TestResults/')) + runName = runName.slice(0, tr.path.indexOf('test/')) req.blocks.push({ type: 'section',