2017-01-23 01:33:34 +03:00
|
|
|
exports[`test expression.js 1`] = `
|
|
|
|
"() => ({}\`\`);
|
|
|
|
({})\`\`;
|
2017-01-23 06:29:30 +03:00
|
|
|
a = () => ({}).x;
|
2017-01-23 01:33:34 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
(() => ({})\`\`);
|
|
|
|
({})\`\`;
|
2017-01-23 06:29:30 +03:00
|
|
|
a = () => ({}).x;
|
2017-01-23 01:33:34 +03:00
|
|
|
"
|
|
|
|
`;
|
2017-01-30 20:54:19 +03:00
|
|
|
|
2017-02-16 04:52:54 +03:00
|
|
|
exports[`test method.js 1`] = `
|
|
|
|
"a = { f() {} }
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
a = { f() {} };
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-01-30 20:54:19 +03:00
|
|
|
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 }
|
|
|
|
);
|
|
|
|
"
|
|
|
|
`;
|