Skip to content

Commit 0c77cd9

Browse files
committed
chore: format
1 parent ae79779 commit 0c77cd9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/__tests__/__mocks__/vscode.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export const workspace = {
5555
const { readFile } = await import("fs/promises");
5656
return await readFile(uri.fsPath);
5757
},
58-
writeFile: async (uri: { fsPath: string }, content: Uint8Array): Promise<void> => {
58+
writeFile: async (
59+
uri: { fsPath: string },
60+
content: Uint8Array
61+
): Promise<void> => {
5962
const { writeFile } = await import("fs/promises");
6063
await writeFile(uri.fsPath, content);
6164
},
@@ -72,13 +75,12 @@ export const workspace = {
7275
const { mkdir } = await import("fs/promises");
7376
await mkdir(uri.fsPath, { recursive: true });
7477
},
75-
readDirectory: async (uri: { fsPath: string }): Promise<Array<[string, number]>> => {
78+
readDirectory: async (uri: {
79+
fsPath: string;
80+
}): Promise<Array<[string, number]>> => {
7681
const { readdir } = await import("fs/promises");
7782
const entries = await readdir(uri.fsPath, { withFileTypes: true });
78-
return entries.map((entry) => [
79-
entry.name,
80-
entry.isDirectory() ? 2 : 1,
81-
]);
83+
return entries.map((entry) => [entry.name, entry.isDirectory() ? 2 : 1]);
8284
},
8385
},
8486
};

0 commit comments

Comments
 (0)