Fix tests
This commit is contained in:
1 parent
3404375df8
commit
4a5adf9c03
3 files changed
+21
-10
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"],
|
||||
},
|
||||
});
|
||||
@@ -1480,7 +1480,7 @@ tabWidth: 4
|
||||
|
||||
- foo
|
||||
|
||||
indented code block in bullet
|
||||
indented code block in bullet
|
||||
|
||||
---
|
||||
|
||||
@@ -1516,7 +1516,7 @@ tabWidth: 4
|
||||
|
||||
- [ ] foo
|
||||
|
||||
indented code block in checkbox item
|
||||
indented code block in checkbox item
|
||||
|
||||
---
|
||||
|
||||
@@ -1758,7 +1758,7 @@ tabWidth: 999
|
||||
|
||||
- foo
|
||||
|
||||
indented code block in bullet
|
||||
indented code block in bullet
|
||||
|
||||
---
|
||||
|
||||
@@ -1782,7 +1782,7 @@ tabWidth: 999
|
||||
|
||||
1. foo
|
||||
|
||||
indented code block in numbered item
|
||||
indented code block in numbered item
|
||||
|
||||
---
|
||||
|
||||
@@ -1794,7 +1794,7 @@ tabWidth: 999
|
||||
|
||||
- [ ] foo
|
||||
|
||||
indented code block in checkbox item
|
||||
indented code block in checkbox item
|
||||
|
||||
---
|
||||
|
||||
@@ -1861,7 +1861,7 @@ tabWidth: 999
|
||||
- item 1-1
|
||||
- item 1-2
|
||||
|
||||
indented code block
|
||||
indented code block
|
||||
|
||||
top level indented code block
|
||||
|
||||
@@ -4128,8 +4128,8 @@ tabWidth: 4
|
||||
=====================================output=====================================
|
||||
- [x] short first line.
|
||||
|
||||
second paragraph at six spaces that wraps
|
||||
onto another line here.
|
||||
second paragraph at six spaces that wraps
|
||||
onto another line here.
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -4149,8 +4149,8 @@ tabWidth: 999
|
||||
=====================================output=====================================
|
||||
- [x] short first line.
|
||||
|
||||
second paragraph at six spaces that wraps
|
||||
onto another line here.
|
||||
second paragraph at six spaces that wraps
|
||||
onto another line here.
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
Reference in new issue
Block a user