diff options
author | 2021-10-06 20:02:40 -0700 | |
---|---|---|
committer | 2021-10-06 20:02:40 -0700 | |
commit | 0d79435ce26f5d97886f58f4f8d191cdc73fb7e6 (patch) | |
tree | 733b935ca9c6c8fbfb88d1ff60bd940c5e0268da /integration/snapshots/react-context-value-func.hmr.tsx | |
parent | 4ee2fdf1c612f39426b14a2c37c1e46735d9f58e (diff) | |
download | bun-0d79435ce26f5d97886f58f4f8d191cdc73fb7e6.tar.gz bun-0d79435ce26f5d97886f58f4f8d191cdc73fb7e6.tar.zst bun-0d79435ce26f5d97886f58f4f8d191cdc73fb7e6.zip |
Snapshots
Diffstat (limited to 'integration/snapshots/react-context-value-func.hmr.tsx')
-rw-r--r-- | integration/snapshots/react-context-value-func.hmr.tsx | 20 |
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({ |