2020-04-25 11:38:06 +09:00
|
|
|
const fixtures = {
|
2022-01-04 17:00:25 +08:00
|
|
|
importMeta: import.meta,
|
2020-04-25 11:38:06 +09:00
|
|
|
snippets: [
|
|
|
|
|
"var a = { /* comment */ \nb };", // trailing whitespace after comment
|
|
|
|
|
"var a = { /* comment */\nb };",
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
2025-04-17 04:53:05 +08:00
|
|
|
runFormatTest(fixtures, ["babel", "flow", "typescript"]);
|
|
|
|
|
runFormatTest(fixtures, ["babel", "flow", "typescript"], { semi: false });
|