Fix tests

This commit is contained in:
fisker Cheung committed 2022-07-11 17:33:18 +08:00
1 parent e3cb487706
commit 59552bafdf
1 file changed
+4 -4
@@ -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