diff --git a/cypress/integration/rendering/journey.spec.js b/cypress/integration/rendering/journey.spec.js index 70d5574b8..43c6513f6 100644 --- a/cypress/integration/rendering/journey.spec.js +++ b/cypress/integration/rendering/journey.spec.js @@ -214,7 +214,7 @@ section Checkout from website $lines.each((index, el) => { const bbox = el.getBBox(); expect(bbox.width).to.be.lte(320); - maxLineWidth = Math.max(maxLineWidth || 0, bbox.width); + maxLineWidth = Math.max(maxLineWidth ?? 0, bbox.width); }); /** The expected margin between the diagram and the legend is 150px, as defined by