Skip to content

Commit 5c2c2ac

Browse files
committed
fix async expect
1 parent 6207679 commit 5c2c2ac

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests_integration/__tests__/file-info.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ describe("extracts file-info with inferredParser=foo when a plugin is hand-picke
105105
});
106106
});
107107

108-
test("API getFileInfo with no args", () => {
108+
test("API getFileInfo with no args", () =>
109109
expect(prettier.getFileInfo()).rejects.toThrow(
110110
new TypeError("expect `filePath` to be a string, got `undefined`")
111-
);
112-
});
111+
));
113112

114113
test("API getFileInfo.sync with no args", () => {
115114
expect(() => prettier.getFileInfo.sync()).toThrow(

0 commit comments

Comments
 (0)