From e55da71f4b9a3ecfd9176c68723fb55f731fe1d7 Mon Sep 17 00:00:00 2001 From: leowrites Date: Wed, 16 Oct 2024 21:40:31 -0400 Subject: [PATCH] update snapshots --- .../src/tests/__snapshots__/cli.spec.tsx.snap | 22 ++--- .../tests/__snapshots__/draw.spec.tsx.snap | 98 ++++++++++++++++--- 2 files changed, 96 insertions(+), 24 deletions(-) diff --git a/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap b/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap index 0ca8d7af..85d627de 100644 --- a/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap +++ b/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap @@ -33,7 +33,7 @@ exports[`memory-viz CLI output path should overwrite existing svg when the outpu path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz CLI output path should produce consistent svg when the output path is a file 1`] = ` @@ -69,7 +69,7 @@ exports[`memory-viz CLI output path should produce consistent svg when the outpu path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz CLI output path should produce consistent svg when the output path is a file in a directory 1`] = ` @@ -105,7 +105,7 @@ exports[`memory-viz CLI output path should produce consistent svg when the outpu path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided filepath and a variety of rough-config option(s) 1`] = ` @@ -141,7 +141,7 @@ exports[`memory-viz cli produces consistent svg when provided filepath and a var path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided filepath and output option(s) 1`] = ` @@ -177,7 +177,7 @@ exports[`memory-viz cli produces consistent svg when provided filepath and outpu path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided filepath and stdout 1`] = ` @@ -213,7 +213,7 @@ exports[`memory-viz cli produces consistent svg when provided filepath and stdou path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str + "David is cool!"id19str " `; @@ -250,7 +250,7 @@ exports[`memory-viz cli produces consistent svg when provided filepath, output, path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided filepath, output, and width option(s) 1`] = ` @@ -286,7 +286,7 @@ exports[`memory-viz cli produces consistent svg when provided filepath, output, path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided filepath, output, height, and width option(s) 1`] = ` @@ -322,7 +322,7 @@ exports[`memory-viz cli produces consistent svg when provided filepath, output, path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided stdin and output 1`] = ` @@ -358,7 +358,7 @@ exports[`memory-viz cli produces consistent svg when provided stdin and output 1 path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`memory-viz cli produces consistent svg when provided stdin and stdout 1`] = ` @@ -394,6 +394,6 @@ exports[`memory-viz cli produces consistent svg when provided stdin and stdout 1 path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str + "David is cool!"id19str " `; diff --git a/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap b/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap index a22bde17..4160a0fc 100644 --- a/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap +++ b/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap @@ -249,7 +249,7 @@ exports[`draw function renders 'hide_container' style preset 1`] = ` path { stroke: rgb(0, 0, 0); } - itemid45__main__"hide container!"id42str" + itemid45__main__"hide container!"id42str" `; exports[`draw function renders 'hide_id' style preset 1`] = ` @@ -321,7 +321,7 @@ exports[`draw function renders 'highlight' style preset 1`] = ` path { stroke: rgb(0, 0, 0); } - itemid45__main__"highlight!"id42str" + itemid45__main__"highlight!"id42str" `; exports[`draw function renders 'highlight_id' style preset 1`] = ` @@ -357,7 +357,7 @@ exports[`draw function renders 'highlight_id' style preset 1`] = ` path { stroke: rgb(0, 0, 0); } - itemid45__main__"highlight id!"id42str" + itemid45__main__"highlight id!"id42str" `; exports[`draw function renders 'highlight_type' style preset 1`] = ` @@ -393,7 +393,7 @@ exports[`draw function renders 'highlight_type' style preset 1`] = ` path { stroke: rgb(0, 0, 0); } - itemid45__main__"highlight type!"id42str" + itemid45__main__"highlight type!"id42str" `; exports[`draw function renders a blank space 1`] = ` @@ -541,7 +541,7 @@ exports[`draw function renders a bool using manual layout 1`] = ` `; exports[`draw function renders a diagram with 'small' width value and a mix stack frame/non-stack frame objects 1`] = ` -"aid7__main__xid1yid17funcid170id81id84list"David is cool!"id19str" `; exports[`draw function renders a diagram with 'small' width value and no stack frames 1`] = ` -""David is cool!"id19str" `; exports[`draw function renders a diagram with large left margins 1`] = ` -"aid7__main__xid1yid17funcid170id81id84list"David is cool!"id19str" `; exports[`draw function renders a dict 1`] = ` @@ -1008,6 +1008,78 @@ exports[`draw function renders a tuple without indexes showing 1`] = ` id10id11id12id32tuple" `; +exports[`draw function renders an appropriately sized box for a string with the highlight style 1`] = ` +""I am a very very very very very very very very very very very very very very very very very very very very very very very very very very very long string"id1str" +`; + +exports[`draw function renders an appropriately sized box for a very long string 1`] = ` +""I am a very very very very very very very very very very very very very very very very very very very very very very very very very very very long string"id1str" +`; + exports[`draw function renders an empty dict 1`] = ` "itemid45__main__"combination!"id42str" + itemid45__main__"combination!"id42str" `; exports[`draw function renders custom style (without presets) 1`] = ` @@ -1329,7 +1401,7 @@ exports[`draw function renders custom style (without presets) 1`] = ` path { stroke: rgb(0, 0, 0); } - "David is cool!"id19str" + "David is cool!"id19str" `; exports[`draw function renders diagrams with provided mix of roughjs_config options 1`] = ` @@ -1545,5 +1617,5 @@ exports[`draw function should produce consistent svg when provided seed 1`] = ` path { stroke: rgb(0, 0, 0); } - lst1id82lst2id84pid99did10tid11__main__"David is cool!"id19str7id13int" + lst1id82lst2id84pid99did10tid11__main__"David is cool!"id19str7id13int" `;