Skip to content

Commit

Permalink
Add a test case for transiting from |. to -> in JSX (#2157)
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl authored and chenglou committed Aug 23, 2018
1 parent bb998eb commit 9bb1616
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions formatTest/unit_tests/expected_output/fastPipe.re
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,5 @@ window
</div>;

a->(b->c);

<div> {T.t("value")->ReasonReact.string} </div>;
2 changes: 2 additions & 0 deletions formatTest/unit_tests/input/fastPipe.re
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,5 @@ window->Webapi.Dom.Window.open_(~url, ~name="authWindow", () => { let x = 1; let
<div> {items->Belt.Array.map(ReasonReact.string)->ReasonReact.array} </div>;

a->(b->c);

<div> (T.t("value") |. ReasonReact.string) </div>;

0 comments on commit 9bb1616

Please sign in to comment.