Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 4457394

Browse files
committed
add test
1 parent 515a850 commit 4457394

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/ppx/react/expected/noPropsWithKey.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ module V4C = {
2626
ReactDOM.createElement(
2727
React.fragment,
2828
[
29-
ReactPPX4Support.createElementWithKey(~key="k", V4CA.make, {}),
30-
ReactPPX4Support.createElementWithKey(~key="k", V4CB.make, {}),
29+
JsxPPXReactSupport.createElementWithKey(~key="k", V4CA.make, {}),
30+
JsxPPXReactSupport.createElementWithKey(~key="k", V4CB.make, {}),
3131
],
3232
)
3333
let make = {

tests/ppx/react/expected/optionalKeyType.res.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ let _ = ReactDOMRe.createDOMElementVariadic(
3030

3131
@@jsxConfig({version: 4, mode: "classic"})
3232

33-
let _ = ReactPPX4Support.createElementWithKey(~key="k", C.make, {})
34-
let _ = ReactPPX4Support.createElementWithKey(~key=?Some("k"), C.make, {})
35-
let _ = ReactPPX4Support.createElementWithKey(~key?, C.make, {})
33+
let _ = JsxPPXReactSupport.createElementWithKey(~key="k", C.make, {})
34+
let _ = JsxPPXReactSupport.createElementWithKey(~key=?Some("k"), C.make, {})
35+
let _ = JsxPPXReactSupport.createElementWithKey(~key?, C.make, {})
3636
let _ = ReactDOM.createDOMElementVariadic("div", ~props={key: "k"}, [])
3737
let _ = ReactDOM.createDOMElementVariadic("div", ~props={key: ?Some("k")}, [])
3838
let _ = ReactDOM.createDOMElementVariadic("div", ~props={key: ?key}, [])

tests/ppx/react/expected/removedKeyProp.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ let make = (_: props) =>
3434
ReactDOM.createElement(
3535
React.fragment,
3636
[
37-
ReactPPX4Support.createElementWithKey(~key="k", Foo.make, {x: "x", y: "y"}),
37+
JsxPPXReactSupport.createElementWithKey(~key="k", Foo.make, {x: "x", y: "y"}),
3838
React.createElement(Foo.make, {x: "x", y: "y"}),
39-
ReactPPX4Support.createElementWithKey(
39+
JsxPPXReactSupport.createElementWithKey(
4040
~key="k",
4141
HasChildren.make,
4242
{

0 commit comments

Comments
 (0)