aboutsummaryrefslogtreecommitdiff
path: root/test/snapshots/react-context-value-func.debug.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/react-context-value-func.debug.tsx')
-rw-r--r--test/snapshots/react-context-value-func.debug.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/snapshots/react-context-value-func.debug.tsx b/test/snapshots/react-context-value-func.debug.tsx
index 6ebe7c0ce..e3ef03a82 100644
--- a/test/snapshots/react-context-value-func.debug.tsx
+++ b/test/snapshots/react-context-value-func.debug.tsx
@@ -14,22 +14,22 @@ const ContextProvider = ({ children }) => {
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, {})
+});
export function test() {
- const foo = jsx(TestComponent, {}, undefined, false, undefined, this);
+ const foo = jsx(TestComponent, {});
return testDone(import.meta.url);
}