From 33a473734b4cddebd91507460b44a67c5c782cb0 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 20 Feb 2018 20:25:06 -0500 Subject: [PATCH] Updating tests to cover an edge case --- src/components/SVG/VerticalLayout.test.js | 12 +++++ .../__snapshots__/VerticalLayout.test.js.snap | 52 +++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/src/components/SVG/VerticalLayout.test.js b/src/components/SVG/VerticalLayout.test.js index 24d69bb..3029122 100644 --- a/src/components/SVG/VerticalLayout.test.js +++ b/src/components/SVG/VerticalLayout.test.js @@ -31,4 +31,16 @@ describe('VerticalLayout', () => { component.update(); expect(component).toMatchSnapshot(); }); + + test('rendering with connectors (no sides)', async () => { + const component = mount( + + + + + ); + await component.instance().doReflow(); + component.update(); + expect(component).toMatchSnapshot(); + }); }); diff --git a/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap b/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap index d24d22c..c5f380b 100644 --- a/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap +++ b/src/components/SVG/__snapshots__/VerticalLayout.test.js.snap @@ -69,6 +69,58 @@ exports[`VerticalLayout rendering 1`] = ` `; +exports[`VerticalLayout rendering with connectors (no sides) 1`] = ` + + + + + + Mock content + + + + + + + Mock content + + + + +`; + exports[`VerticalLayout rendering with connectors 1`] = `