prettier.{format,formatWithCursor,check}() are now async (#12574)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-04-29 14:22:24 +08:00
1 parent 2bcee631a2
commit c6d6b25833
20 files changed
+198 -154

No files matched your search

+3 -3
View File
@@ -52,9 +52,9 @@ describe("standalone", () => {
});
for (const parser of parserNames) {
test(parser, () => {
test(parser, async () => {
const input = codeSamples(parser);
const umdOutput = standalone.format(input, {
const umdOutput = await standalone.format(input, {
parser,
plugins,
});
@@ -63,7 +63,7 @@ describe("standalone", () => {
expect(typeof umdOutput).toBe("string");
expect(umdOutput).not.toBe(input);
const esmOutput = esmStandalone.format(input, {
const esmOutput = await esmStandalone.format(input, {
parser,
plugins: esmPlugins,
});