Fix tests
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user