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

63 lines
1.2 KiB
Plaintext
Raw Normal View History

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