Skip to content

Commit 222ed7c

Browse files
committed
Fix lint fmt
1 parent fa845b7 commit 222ed7c

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

‎src/helpers.test.ts‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -416,17 +416,20 @@ describe("getArgs", () => {
416416
mockedWhich.sync.mockReturnValue("/path/to/which/pyright");
417417

418418
let callCount = 0;
419-
mockedCp.execFileSync.mockImplementation((() => {
420-
callCount += 1;
421-
switch (callCount) {
422-
case 1:
423-
return `this is some junk\n\n*** downloading\npyright ooops\ndone`;
424-
case 2:
425-
return `this is some junk\n\n*** downloading\npyright ${latestPyright}\ndone`;
426-
default:
427-
throw new Error("should not have been called");
428-
}
429-
}) as any);
419+
mockedCp.execFileSync.mockImplementation(
420+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
421+
(() => {
422+
callCount += 1;
423+
switch (callCount) {
424+
case 1:
425+
return `this is some junk\n\n*** downloading\npyright ooops\ndone`;
426+
case 2:
427+
return `this is some junk\n\n*** downloading\npyright ${latestPyright}\ndone`;
428+
default:
429+
throw new Error("should not have been called");
430+
}
431+
}) as any,
432+
);
430433

431434
const result = await getArgs(execPath);
432435
expect(result).toMatchSnapshot("result");

0 commit comments

Comments
 (0)