Fix wrong test (#4507)
parent
7d50c25195
commit
1088618b35
|
@ -104,7 +104,12 @@ describe("extracts file-info with inferredParser=foo when a plugin is hand-picke
|
||||||
});
|
});
|
||||||
|
|
||||||
test("API getFileInfo with no args", () => {
|
test("API getFileInfo with no args", () => {
|
||||||
expect(prettier.getFileInfo()).rejects.toThrow();
|
// TODO: change this to `rejects.toThrow()` when we upgrade to Jest >= 22
|
||||||
|
// https://github.com/facebook/jest/issues/3601
|
||||||
|
expect.assertions(1);
|
||||||
|
return prettier.getFileInfo().catch(err => {
|
||||||
|
expect(err).toBeDefined();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test("API getFileInfo.sync with no args", () => {
|
test("API getFileInfo.sync with no args", () => {
|
||||||
|
|
Loading…
Reference in New Issue