From 729d445b6885f69dd2c6355f38707bd42851c791 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 22 Jun 2022 23:21:48 -0700 Subject: change the directory structure --- test/snippets/jsx-top-level.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/snippets/jsx-top-level.tsx (limited to 'test/snippets/jsx-top-level.tsx') diff --git a/test/snippets/jsx-top-level.tsx b/test/snippets/jsx-top-level.tsx new file mode 100644 index 000000000..2b49b5959 --- /dev/null +++ b/test/snippets/jsx-top-level.tsx @@ -0,0 +1,21 @@ +const isDropdown = true; +const iconName = ""; +const adjustedPadding = 5; + +const Icon = ({ name, size, color }) => { + return name; +}; + +const Foo = ; +const yoooo = []; +const iconProps = { + // This regression test is to ensure that the JSX value here does not print as an e_missing (nothing) + rightIcon: , + paddingRight: adjustedPadding, +}; + +export function test() { + const foo = iconProps.rightIcon; + yoooo[0]; + return testDone(import.meta.url); +} -- cgit v1.2.3