aboutsummaryrefslogtreecommitdiff
path: root/test/snapshots/react-context-value-func.hmr.debug.tsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-10 00:18:59 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-10 00:19:19 -0800
commitab49f95ef25a49f5d8a53bc8242ee490b15a5b74 (patch)
tree8d6dd6fd93a707fb15ec75e57145cf9c61380708 /test/snapshots/react-context-value-func.hmr.debug.tsx
parent047754d5ddae0b760b807adafcb3678d8702d7df (diff)
downloadbun-ab49f95ef25a49f5d8a53bc8242ee490b15a5b74.tar.gz
bun-ab49f95ef25a49f5d8a53bc8242ee490b15a5b74.tar.zst
bun-ab49f95ef25a49f5d8a53bc8242ee490b15a5b74.zip
:camera:
Diffstat (limited to 'test/snapshots/react-context-value-func.hmr.debug.tsx')
-rw-r--r--test/snapshots/react-context-value-func.hmr.debug.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/snapshots/react-context-value-func.hmr.debug.tsx b/test/snapshots/react-context-value-func.hmr.debug.tsx
index 2a8833251..a31263ff9 100644
--- a/test/snapshots/react-context-value-func.hmr.debug.tsx
+++ b/test/snapshots/react-context-value-func.hmr.debug.tsx
@@ -26,22 +26,22 @@ var hmr = new FastHMR(4175696745, "react-context-value-func.tsx", FastRefresh),
return jsx(Context.Provider, {
value: cb,
children: children(foo)
- }, undefined, false, undefined, this);
+ });
};
const ContextValue = ({}) => jsx(Context.Consumer, {
children: (foo) => {
if (foo)
return jsx("div", {
children: "Worked!"
- }, undefined, false, undefined, this);
+ });
throw `Value "${foo}"" should be true`;
}
- }, undefined, false, undefined, this);
+ });
const TestComponent = () => jsx(ContextProvider, {
- children: jsx(ContextValue, {}, undefined, false, undefined, this)
- }, undefined, false, undefined, this);
+ children: jsx(ContextValue, {})
+ });
function test() {
- const foo = jsx(TestComponent, {}, undefined, false, undefined, this);
+ const foo = jsx(TestComponent, {});
return testDone(import.meta.url);
}
hmr.exportAll({