diff --git a/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap b/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap index b4efb8b..d24d22c 100644 --- a/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap +++ b/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap @@ -75,7 +75,7 @@ exports[`VerticalLayout rendering with connectors 1`] = ` withConnectors={true} > { + [ + // lineTo + [ 'lineTo', { x: 5, y: 1 }, 'L5,1' ], + [ 'lineTo', { x: 5, y: 0 }, 'H5' ], + [ 'lineTo', { x: 0, y: 1 }, 'V1' ], + [ 'lineTo', { x: 0, y: 0 }, '' ], + [ 'lineTo', { x: 5 }, 'H5' ], + [ 'lineTo', { y: 1 }, 'V1' ], + [ 'lineTo', {}, '' ], + [ 'lineTo', { x: 5, y: 1, relative: true }, 'l5,1' ], + [ 'lineTo', { x: 5, y: 0, relative: true }, 'h5' ], + [ 'lineTo', { x: 0, y: 1, relative: true }, 'v1' ], + [ 'lineTo', { x: 0, y: 0, relative: true }, '' ], + [ 'lineTo', { x: 5, relative: true }, 'h5' ], + [ 'lineTo', { y: 1, relative: true }, 'v1' ], + [ 'lineTo', { relative: true }, '' ], + ].forEach(([ cmd, args, str ], i) => ( + test(`case #${ i }`, () => { + const path = new Path(); + path[cmd](args); + expect(path.toString()).toEqual(str); + }) + )); +});