Skip to content

Commit

Permalink
Add regression tests for long JSX Expression contents
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrayalex committed Jan 12, 2017
1 parent cff87cb commit 4c0f59f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/prettier/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -158,6 +158,10 @@ const render7 = () =>
<div /> <div />
</div>
const render8 = (props) => <div>{props.text}</div>
const render9 = (props) => <div>{props.looooooooooooooooooooooooooooooong_text}</div>
const render9 = (props) => <div>{props.even_looooooooooooooooooooooooooooooooooooooooooonger_contents}</div>
const notJSX = (aaaaaaaaaaaaaaaaa, bbbbbbbbbbb) => this.someLongCallWithParams(aaaaaa, bbbbbbb).anotherLongCallWithParams(cccccccccccc, dddddddddddddddddddddd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const render1 = ({ styles }) => (
Expand Down Expand Up @@ -232,6 +236,16 @@ const render7 = () => (
</div>
);
const render8 = props => <div>{props.text}</div>;
const render9 = props => (
<div>{props.looooooooooooooooooooooooooooooong_text}</div>
);
const render9 = props => (
<div>
{props.even_looooooooooooooooooooooooooooooooooooooooooonger_contents}
</div>
);
const notJSX = (aaaaaaaaaaaaaaaaa, bbbbbbbbbbb) =>
this
.someLongCallWithParams(aaaaaa, bbbbbbb)
Expand Down
4 changes: 4 additions & 0 deletions tests/prettier/jsx-stateless-arrow-fn.js
Expand Up @@ -29,4 +29,8 @@ const render7 = () =>
<div /> <div />
</div>

const render8 = (props) => <div>{props.text}</div>
const render9 = (props) => <div>{props.looooooooooooooooooooooooooooooong_text}</div>
const render10 = (props) => <div>{props.even_looooooooooooooooooooooooooooooooooooooooooonger_contents}</div>

const notJSX = (aaaaaaaaaaaaaaaaa, bbbbbbbbbbb) => this.someLongCallWithParams(aaaaaa, bbbbbbb).anotherLongCallWithParams(cccccccccccc, dddddddddddddddddddddd)

0 comments on commit 4c0f59f

Please sign in to comment.