Skip to content

Commit

Permalink
fix: apply formatting for pr #230, address #229
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Shevtsov committed Mar 15, 2024
1 parent bd8ea53 commit ddfeb7a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions writer/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit ddfeb7a

Please sign in to comment.