Fix tests
This commit is contained in:
1 parent
3404375df8
commit
4a5adf9c03
2 files changed
+11
No files matched your search
@@ -93,6 +93,16 @@ exports[`import-phase.js format[meriyah] 1`] = `
|
||||
Cause: [1:7-1:13]: The only valid meta property for import is 'import.meta'"
|
||||
`;
|
||||
|
||||
exports[`import-phase.js format[typescript] 1`] = `
|
||||
"'source' is not a valid meta-property for keyword 'import'. (1:1)
|
||||
> 1 | import.source(\`data:text/javascript,
|
||||
| ^^^^^^^^^^^^^
|
||||
2 | console.log("RUN");
|
||||
3 | \`)
|
||||
4 |
|
||||
Cause: 'source' is not a valid meta-property for keyword 'import'."
|
||||
`;
|
||||
|
||||
exports[`template-literal.js format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["babel", "flow", "typescript"]
|
||||
|
||||
@@ -5,5 +5,6 @@ runFormatTest(import.meta, ["babel", "flow", "typescript"], {
|
||||
acorn: ["import-phase.js"],
|
||||
espree: ["import-phase.js"],
|
||||
meriyah: ["import-phase.js"],
|
||||
typescript: ["import-phase.js"],
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user