Files
test-repo/tests/js_empty/jsfmt.spec.js
T
fisker Cheung f470142e16 test: Allow assert output (#8142)
* test: Allow assert output

* Use `outdent`
2020-04-25 09:23:34 +08:00

32 lines
596 B
JavaScript

run_spec(
{
dirname: __dirname,
snippets: [
...[
// empty
"",
// empty lines
"\n",
"\n\n\n\n",
// 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"]
);