prettier/tests/objects/__snapshots__/jsfmt.spec.js.snap

49 lines
932 B
Plaintext
Raw Normal View History

exports[`test expression.js 1`] = `
"() => ({}\`\`);
({})\`\`;
a = () => ({}).x;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(() => ({})\`\`);
({})\`\`;
a = () => ({}).x;
"
`;
exports[`test method.js 1`] = `
"a = { f() {} }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = { f() {} };
"
`;
exports[`test range.js 1`] = `
"group(
concat([
\"(\",
indent(
options.tabWidth,
concat([line, join(concat([\",\", line]), printed)])
),
options.trailingComma ? \",\" : \"\",
line,
\")\"
]),
{shouldBreak: true}
)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
group(
concat([
\"(\",
indent(
options.tabWidth,
concat([line, join(concat([\",\", line]), printed)])
),
options.trailingComma ? \",\" : \"\",
line,
\")\"
]),
{ shouldBreak: true }
);
"
`;