19 lines
527 B
JavaScript
19 lines
527 B
JavaScript
const fixtures = {
|
|
importMeta: import.meta,
|
|
snippets: [
|
|
"var a = { /* comment */ \nb };", // trailing whitespace after comment
|
|
"var a = { /* comment */\nb };",
|
|
],
|
|
};
|
|
|
|
const errors = {
|
|
acorn: ["tuple-and-record.js"],
|
|
espree: ["tuple-and-record.js"],
|
|
meriyah: ["tuple-and-record.js"],
|
|
typescript: ["tuple-and-record.js"],
|
|
flow: ["tuple-and-record.js"],
|
|
};
|
|
|
|
run_spec(fixtures, ["babel", "flow", "typescript"], { errors });
|
|
run_spec(fixtures, ["babel", "flow", "typescript"], { semi: false, errors });
|