prettier/tests/jsx-split-attrs/__snapshots__/jsfmt.spec.js.snap

232 lines
5.8 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
====================================options=====================================
parsers: ["flow", "babel", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
long_closed =
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"/>
long_open =
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google">
hello
</BaseForm>
long_open_long_children =
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google">
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google">
Hello world
</BaseForm>
<div><div><div><div><div><div>hey hiya how are ya</div></div></div></div></div></div>
<div><div><div><div attr="long" attr2="also long" attr3="gonna break"></div></div></div></div>
<div><div><div>
<div attr="long" attr2="also long" attr3="gonna break" attr4="hello please break me" />
</div></div></div>
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"><BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"></BaseForm>d</BaseForm>
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"><BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"></BaseForm></BaseForm>
</BaseForm>
short_closed =
<BaseForm url="/auth/google" method="GET"/>
short_open =
<BaseForm url="/auth/google" method="GET">
hello
</BaseForm>
make_self_closing =
<div>
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google">
</BaseForm>
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"></BaseForm>
</div>
leave_opening =
<BaseForm url="/auth/google" method="GET" colour="blue" size="large" submitLabel="Sign in with Google"> </BaseForm>
long_string =
<div className="i use bootstrap and just put loooaads of classnames in here all the time">hello world</div>
long_string_with_extra_param =
<div className="i use bootstrap and just put loooaads of classnames in here all the time" blah="3">hello world</div>
long_obj =
<div style={{ i: 'dont', use: 'bootstrap', and: 'instead', use: 'massive', objects }}>hello world</div>
=====================================output=====================================
long_closed = (
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
/>
);
long_open = (
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
>
hello
</BaseForm>
);
long_open_long_children = (
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
>
Hello world
</BaseForm>
<div>
<div>
<div>
<div>
<div>
<div>hey hiya how are ya</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div attr="long" attr2="also long" attr3="gonna break"></div>
</div>
</div>
</div>
<div>
<div>
<div>
<div
attr="long"
attr2="also long"
attr3="gonna break"
attr4="hello please break me"
/>
</div>
</div>
</div>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
></BaseForm>
d
</BaseForm>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
></BaseForm>
</BaseForm>
</BaseForm>
);
short_closed = <BaseForm url="/auth/google" method="GET" />;
short_open = (
<BaseForm url="/auth/google" method="GET">
hello
</BaseForm>
);
make_self_closing = (
<div>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
></BaseForm>
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
></BaseForm>
</div>
);
leave_opening = (
<BaseForm
url="/auth/google"
method="GET"
colour="blue"
size="large"
submitLabel="Sign in with Google"
>
{" "}
</BaseForm>
);
long_string = (
<div className="i use bootstrap and just put loooaads of classnames in here all the time">
hello world
</div>
);
long_string_with_extra_param = (
<div
className="i use bootstrap and just put loooaads of classnames in here all the time"
blah="3"
>
hello world
</div>
);
long_obj = (
<div
style={{
i: "dont",
use: "bootstrap",
and: "instead",
use: "massive",
objects
}}
>
hello world
</div>
);
================================================================================
`;