Fix warning on test (#7566)
This commit is contained in:
1 parent
57d2b9df28
commit
81e8f28156
1 file changed
+3
-1
@@ -62,5 +62,7 @@ test("should work with foo plugin instance", () => {
|
||||
|
||||
test("'Adjacent JSX' error should not be swallowed by Babel's error recovery", () => {
|
||||
const input = "<a></a>\n<b></b>";
|
||||
expect(() => prettier.format(input)).toThrowErrorMatchingSnapshot();
|
||||
expect(() =>
|
||||
prettier.format(input, { parser: "babel" })
|
||||
).toThrowErrorMatchingSnapshot();
|
||||
});
|
||||
Reference in new issue
Block a user