Fix warning on test (#7566)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-02-14 00:14:24 +02:00
1 parent 57d2b9df28
commit 81e8f28156
1 file changed
+3 -1
+3 -1
View File
@@ -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();
});