From 4d6b5c8a4041dc93ce9ae4662db49e505bbd182a Mon Sep 17 00:00:00 2001 From: yoonieaj <144498960+yoonieaj@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:51:41 -0400 Subject: [PATCH] Move global styles to "David is cool!"id19str" +`; -exports[`memory-viz cli produces consistent svg when provided filepath and output option(s) 1`] = `""David is cool!"id19str"`; +exports[`memory-viz cli produces consistent svg when provided filepath and output option(s) 1`] = ` +""David is cool!"id19str" +`; exports[`memory-viz cli produces consistent svg when provided filepath and stdout 1`] = ` -""David is cool!"id19str +""David is cool!"id19str " `; -exports[`memory-viz cli produces consistent svg when provided filepath, output, and height option(s) 1`] = `""David is cool!"id19str"`; +exports[`memory-viz cli produces consistent svg when provided filepath, output, and height option(s) 1`] = ` +""David is cool!"id19str" +`; -exports[`memory-viz cli produces consistent svg when provided filepath, output, and width option(s) 1`] = `""David is cool!"id19str"`; +exports[`memory-viz cli produces consistent svg when provided filepath, output, and width option(s) 1`] = ` +""David is cool!"id19str" +`; -exports[`memory-viz cli produces consistent svg when provided filepath, output, height, and width option(s) 1`] = `""David is cool!"id19str"`; +exports[`memory-viz cli produces consistent svg when provided filepath, output, height, and width option(s) 1`] = ` +""David is cool!"id19str" +`; -exports[`memory-viz cli produces consistent svg when provided stdin and output 1`] = `""David is cool!"id19str"`; +exports[`memory-viz cli produces consistent svg when provided stdin and output 1`] = ` +""David is cool!"id19str" +`; exports[`memory-viz cli produces consistent svg when provided stdin and stdout 1`] = ` -""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 4bf5b5db..9dbc681c 100644 --- a/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap +++ b/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap @@ -1,87 +1,1549 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`draw function formats a mix of stack frame/non-stack frame objects in automatic layout 1`] = `"aid7__main__xid1yid17funcid170id81id84listNoneid10None"`; +exports[`draw function formats a mix of stack frame/non-stack frame objects in automatic layout 1`] = ` +"aid7__main__xid1yid17funcid170id81id84listNoneid10None" +`; -exports[`draw function formats non-stack frame objects in automatic layout 1`] = `"42id98intnameid12id23fruitid19id42id22id63id54list"banana"id12str"`; +exports[`draw function formats non-stack frame objects in automatic layout 1`] = ` +"42id98intnameid12id23fruitid19id42id22id63id54list"banana"id12str" +`; -exports[`draw function renders 'fade' style preset 1`] = `"itemid45__main__"fade!"id42str"`; +exports[`draw function renders 'fade' style preset 1`] = ` +"itemid45__main__"fade!"id42str" +`; -exports[`draw function renders 'fade_id' style preset 1`] = `"itemid45__main__"fade id!"id42str"`; +exports[`draw function renders 'fade_id' style preset 1`] = ` +"itemid45__main__"fade id!"id42str" +`; -exports[`draw function renders 'fade_type' style preset 1`] = `"itemid45__main__"fade_type!"id42str"`; +exports[`draw function renders 'fade_type' style preset 1`] = ` +"itemid45__main__"fade_type!"id42str" +`; -exports[`draw function renders 'hide' style preset 1`] = `"itemid45__main__"hide!"id42str"`; +exports[`draw function renders 'hide' style preset 1`] = ` +"itemid45__main__"hide!"id42str" +`; -exports[`draw function renders 'hide_container' style preset 1`] = `"itemid45__main__"hide container!"id42str"`; +exports[`draw function renders 'hide_container' style preset 1`] = ` +"itemid45__main__"hide container!"id42str" +`; -exports[`draw function renders 'hide_id' style preset 1`] = `"itemid45__main__"hide id!"id42str"`; +exports[`draw function renders 'hide_id' style preset 1`] = ` +"itemid45__main__"hide id!"id42str" +`; -exports[`draw function renders 'highlight' style preset 1`] = `"itemid45__main__"highlight!"id42str"`; +exports[`draw function renders 'highlight' style preset 1`] = ` +"itemid45__main__"highlight!"id42str" +`; -exports[`draw function renders 'highlight_id' style preset 1`] = `"itemid45__main__"highlight id!"id42str"`; +exports[`draw function renders 'highlight_id' style preset 1`] = ` +"itemid45__main__"highlight id!"id42str" +`; -exports[`draw function renders 'highlight_type' style preset 1`] = `"itemid45__main__"highlight type!"id42str"`; +exports[`draw function renders 'highlight_type' style preset 1`] = ` +"itemid45__main__"highlight type!"id42str" +`; -exports[`draw function renders a blank space 1`] = `""`; +exports[`draw function renders a blank space 1`] = ` +"" +`; -exports[`draw function renders a blank stack frame 1`] = `"id19id43id28id49id82list"`; +exports[`draw function renders a blank stack frame 1`] = ` +"id19id43id28id49id82list" +`; -exports[`draw function renders a bool 1`] = `"Trueid32bool"`; +exports[`draw function renders a bool 1`] = ` +"Trueid32bool" +`; -exports[`draw function renders a bool using manual layout 1`] = `"Trueid32bool"`; +exports[`draw function renders a bool using manual layout 1`] = ` +"Trueid32bool" +`; -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 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 '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 diagram with large left margins 1`] = ` +"aid7__main__xid1yid17funcid170id81id84list"David is cool!"id19str" +`; -exports[`draw function renders a dict 1`] = `"idxidyidz:id81:id100:id121id10dict"`; +exports[`draw function renders a dict 1`] = ` +"idxidyidz:id81:id100:id121id10dict" +`; -exports[`draw function renders a float 1`] = `"7id32float"`; +exports[`draw function renders a float 1`] = ` +"7id32float" +`; -exports[`draw function renders a list with indexes showing 1`] = `"id100id111id122id32list"`; +exports[`draw function renders a list with indexes showing 1`] = ` +"id100id111id122id32list" +`; -exports[`draw function renders a list without indexes showing 1`] = `"id10id11id12id32list"`; +exports[`draw function renders a list without indexes showing 1`] = ` +"id10id11id12id32list" +`; -exports[`draw function renders a set 1`] = `"id10id11,id12,id32set{}"`; +exports[`draw function renders a set 1`] = ` +"id10id11,id12,id32set{}" +`; -exports[`draw function renders a stack frame and an int 1`] = `"my_intid13__main__7id13int"`; +exports[`draw function renders a stack frame and an int 1`] = ` +"my_intid13__main__7id13int" +`; -exports[`draw function renders a stack frame using manual layout 1`] = `"lst1id82lst2id84__main__"`; +exports[`draw function renders a stack frame using manual layout 1`] = ` +"lst1id82lst2id84__main__" +`; -exports[`draw function renders a str 1`] = `""winter"id32str"`; +exports[`draw function renders a str 1`] = ` +""winter"id32str" +`; -exports[`draw function renders a tuple with indexes showing 1`] = `"id100id111id122id32tuple"`; +exports[`draw function renders a tuple with indexes showing 1`] = ` +"id100id111id122id32tuple" +`; -exports[`draw function renders a tuple without indexes showing 1`] = `"id10id11id12id32tuple"`; +exports[`draw function renders a tuple without indexes showing 1`] = ` +"id10id11id12id32tuple" +`; -exports[`draw function renders an empty dict 1`] = `"id32dict"`; +exports[`draw function renders an empty dict 1`] = ` +"id32dict" +`; -exports[`draw function renders an empty list 1`] = `"id32list"`; +exports[`draw function renders an empty list 1`] = ` +"id32list" +`; -exports[`draw function renders an empty set 1`] = `"id32set{}"`; +exports[`draw function renders an empty set 1`] = ` +"id32set{}" +`; -exports[`draw function renders an empty tuple 1`] = `"id32tuple"`; +exports[`draw function renders an empty tuple 1`] = ` +"id32tuple" +`; -exports[`draw function renders an int 1`] = `"7id32int"`; +exports[`draw function renders an int 1`] = ` +"7id32int" +`; -exports[`draw function renders an object with no type and no value 1`] = `"Noneid13None"`; +exports[`draw function renders an object with no type and no value 1`] = ` +"Noneid13None" +`; -exports[`draw function renders blank spaces in automatic layout 1`] = `"42id98int"life"id99str"`; +exports[`draw function renders blank spaces in automatic layout 1`] = ` +"42id98int"life"id99str" +`; -exports[`draw function renders combinations of style presets 1`] = `"itemid45__main__"combination!"id42str"`; +exports[`draw function renders combinations of style presets 1`] = ` +"itemid45__main__"combination!"id42str" +`; -exports[`draw function renders custom style (without presets) 1`] = `""David is cool!"id19str"`; +exports[`draw function renders custom style (without presets) 1`] = ` +""David is cool!"id19str" +`; -exports[`draw function renders diagrams with provided mix of roughjs_config options 1`] = `""hello"id42str"`; +exports[`draw function renders diagrams with provided mix of roughjs_config options 1`] = ` +""hello"id42str" +`; -exports[`draw function renders diagrams with provided roughjs_config 'fill' and 'fillStyle' options 1`] = `""hello"id42str"`; +exports[`draw function renders diagrams with provided roughjs_config 'fill' and 'fillStyle' options 1`] = ` +""hello"id42str" +`; -exports[`draw function renders diagrams with provided roughjs_config 'fill' option 1`] = `""hello"id42str"`; +exports[`draw function renders diagrams with provided roughjs_config 'fill' option 1`] = ` +""hello"id42str" +`; -exports[`draw function renders diagrams with provided roughjs_config 'roughness' option 1`] = `""hello"id42str"`; +exports[`draw function renders diagrams with provided roughjs_config 'roughness' option 1`] = ` +""hello"id42str" +`; -exports[`draw function renders range object 1`] = `"range(1, 5)id42range"`; +exports[`draw function renders range object 1`] = ` +"range(1, 5)id42range" +`; -exports[`draw function should produce consistent svg when provided seed 1`] = `"lst1id82lst2id84pid99did10tid11__main__"David is cool!"id19str7id13int"`; +exports[`draw function should produce consistent svg when provided seed 1`] = ` +"lst1id82lst2id84pid99did10tid11__main__"David is cool!"id19str7id13int" +`;