Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
32 lines
611 B
JavaScript
32 lines
611 B
JavaScript
runFormatTest(
|
|
{
|
|
importMeta: import.meta,
|
|
snippets: [
|
|
...[
|
|
// empty
|
|
"",
|
|
// empty lines
|
|
"\n",
|
|
"\n".repeat(4),
|
|
// semicolons
|
|
";",
|
|
";;;;",
|
|
";\n",
|
|
";\n\n;;;\n",
|
|
].map((code) => ({ code, output: "" })),
|
|
// comments
|
|
"// comment",
|
|
"/* comment */",
|
|
"// comment\n",
|
|
"/* comment */\n",
|
|
"\n// comment\n",
|
|
"\n/* comment */\n",
|
|
"// comment\n;",
|
|
"/* comment */\n;",
|
|
";\n// comment\n",
|
|
"\n;/* comment */\n",
|
|
],
|
|
},
|
|
["babel", "flow", "typescript"],
|
|
);
|