Skip to content

Commit 7fe9a82

Browse files
committed
fix test cases
1 parent a7f37a3 commit 7fe9a82

4 files changed

+4
-4
lines changed

tests/cases/fourslash/codeFixAwaitInSyncFunction10.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
////}
66

77
verify.codeFix({
8-
index: 3,
8+
index: 2,
99
description: "Add async modifier to containing function",
1010
newFileContent:
1111
`const f: () => Promise<number | string> = async () => {

tests/cases/fourslash/codeFixAwaitInSyncFunction11.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// should not change type if it's incorrectly set
88
verify.codeFix({
9-
index: 3,
9+
index: 2,
1010
description: "Add async modifier to containing function",
1111
newFileContent:
1212
`const f: string = async () => {

tests/cases/fourslash/codeFixAwaitInSyncFunction13.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
////}
66

77
verify.codeFix({
8-
index: 3,
8+
index: 2,
99
description: "Add async modifier to containing function",
1010
newFileContent:
1111
`const f: () => Promise<number | string> = async () => {

tests/cases/fourslash/codeFixAwaitInSyncFunction15.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
////}
66

77
verify.codeFix({
8-
index: 3,
8+
index: 2,
99
description: "Add async modifier to containing function",
1010
newFileContent:
1111
`const f = async (): Promise<number[]> => {

0 commit comments

Comments
 (0)