Files
test-repo/tests/format/js/empty/format.test.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
607 B
JavaScript
Raw Normal View History

runFormatTest(
{
2022-01-04 17:00:25 +08:00
importMeta: import.meta,
snippets: [
2020-04-25 09:23:34 +08:00
...[
// empty
"",
// empty lines
"\n",
"\n\n\n\n",
// semicolons
";",
";;;;",
";\n",
";\n\n;;;\n",
].map((code) => ({ code, output: "" })),
2020-04-24 01:36:58 +08:00
// 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"],
);