diff options
author | 2022-12-07 19:16:30 -0800 | |
---|---|---|
committer | 2022-12-07 21:41:30 -0800 | |
commit | 2fe5b4da2fed238c5465c7bc96e3d769c030f123 (patch) | |
tree | 7a2883432f5c9cb670a9d3e77cb3d24622fbdbea /test/snapshots/react-context-value-func.tsx | |
parent | 0b94ccdf8c75ab9df4cc965a067d8b881aeb8245 (diff) | |
download | bun-2fe5b4da2fed238c5465c7bc96e3d769c030f123.tar.gz bun-2fe5b4da2fed238c5465c7bc96e3d769c030f123.tar.zst bun-2fe5b4da2fed238c5465c7bc96e3d769c030f123.zip |
:camera:
Diffstat (limited to 'test/snapshots/react-context-value-func.tsx')
-rw-r--r-- | test/snapshots/react-context-value-func.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/snapshots/react-context-value-func.tsx b/test/snapshots/react-context-value-func.tsx index 6ebe7c0ce..e3ef03a82 100644 --- a/test/snapshots/react-context-value-func.tsx +++ b/test/snapshots/react-context-value-func.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); } |