From ddfeb7a1f296eccb8b7b5e40b337b571481fa7d8 Mon Sep 17 00:00:00 2001 From: Oleksandr Shevtsov Date: Fri, 15 Mar 2024 19:21:54 +0200 Subject: [PATCH] fix: apply formatting for pr #230, address #229 --- writer/results.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/writer/results.js b/writer/results.js index 9b18a9e..aa78233 100644 --- a/writer/results.js +++ b/writer/results.js @@ -134,14 +134,14 @@ const writeTests = ({ if (clearSkipped && test.status === 'skipped') { logger.writer('skipping test "%s"', test.name); - const mochaID = Object.keys(allureMapping).find( - (id) => { - if (Array.isArray(allureMapping[id])) { - return allureMapping[id].find(e => e.allureId === test.uuid); - } - return allureMapping[id].allureId === test.uuid; + const mochaID = Object.keys(allureMapping).find((id) => { + if (Array.isArray(allureMapping[id])) { + return allureMapping[id].find( + (e) => e.allureId === test.uuid + ); } - ); + return allureMapping[id].allureId === test.uuid; + }); if (mochaID) { delete allureMapping[mochaID]; }