From 59552bafdf24de937da73e62f25ccb1ea5d2f4cf Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Mon, 11 Jul 2022 17:32:09 +0800 Subject: [PATCH] Fix tests --- tests/integration/__tests__/with-parser-inference.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/__tests__/with-parser-inference.js b/tests/integration/__tests__/with-parser-inference.js index 32d205c21..a921837ee 100644 --- a/tests/integration/__tests__/with-parser-inference.js +++ b/tests/integration/__tests__/with-parser-inference.js @@ -71,17 +71,17 @@ describe("infers parser from filename", () => { ); }); - test("json from .lintstagedrc", () => { + test("json from .lintstagedrc", async () => { expect( - prettier.format(" { '*': 'your-cmd' } ", { + await prettier.format(" { '*': 'your-cmd' } ", { filepath: "/path/to/.lintstagedrc", }) ).toBe('{ "*": "your-cmd" }\n'); }); - test("yaml from .lintstagedrc", () => { + test("yaml from .lintstagedrc", async () => { expect( - prettier.format( + await prettier.format( /* indent */ ` '*': - your-cmd