aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/react-context-value-func.hmr.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'integration/snapshots/react-context-value-func.hmr.tsx')
-rw-r--r--integration/snapshots/react-context-value-func.hmr.tsx20
1 files changed, 10 insertions, 10 deletions
diff --git a/integration/snapshots/react-context-value-func.hmr.tsx b/integration/snapshots/react-context-value-func.hmr.tsx
index 090911b33..c6313661e 100644
--- a/integration/snapshots/react-context-value-func.hmr.tsx
+++ b/integration/snapshots/react-context-value-func.hmr.tsx
@@ -23,23 +23,23 @@ var hmr = new HMR(3514348331, "react-context-value-func.tsx"), exports = hmr.exp
const foo = true;
return jsx(Context.Provider, {
value: cb,
- children: [children(foo)]
- }, undefined, true, undefined, this);
+ children: children(foo)
+ }, undefined, false, undefined, this);
};
const ContextValue = ({}) => jsx(Context.Consumer, {
- children: [(foo) => {
+ children: (foo) => {
if (foo)
return jsx("div", {
- children: ["Worked!"]
- }, undefined, true, undefined, this);
+ children: "Worked!"
+ }, undefined, false, undefined, this);
throw `Value "${foo}"" should be true`;
- }]
- }, undefined, true, undefined, this);
+ }
+ }, undefined, false, undefined, this);
const TestComponent = () => jsx(ContextProvider, {
- children: [jsx(ContextValue, {}, undefined, true, undefined, this)]
- }, undefined, true, undefined, this);
+ children: jsx(ContextValue, {}, undefined, false, undefined, this)
+ }, undefined, false, undefined, this);
function test() {
- const foo = jsx(TestComponent, {}, undefined, true, undefined, this);
+ const foo = jsx(TestComponent, {}, undefined, false, undefined, this);
return testDone(import.meta.url);
}
hmr.exportAll({