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

51 lines
981 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`expression.js 1`] = `
"() => ({}\`\`);
({})\`\`;
a = () => ({}).x;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(() => ({})\`\`);
({})\`\`;
a = () => ({}).x;
"
`;
exports[`method.js 1`] = `
"a = { f() {} }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = { f() {} };
"
`;
exports[`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 }
);
"
`;