Skip to content

Commit a54ed2d

Browse files
committed
Fix random other test
1 parent 58d960e commit a54ed2d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/cases/fourslash/convertFunctionToEs6Class_asyncMethods.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
// @allowNonTsExtensions: true
44
// @Filename: test123.js
5+
// @lib: es5
56
////export function /**/MyClass() {
67
////}
78
////MyClass.prototype.foo = async function() {
8-
//// await 2;
9+
//// await Promise.resolve();
910
////}
1011
////MyClass.bar = async function() {
11-
//// await 3;
12+
//// await Promise.resolve();
1213
////}
1314

1415
verify.codeFix({
@@ -18,10 +19,10 @@ verify.codeFix({
1819
constructor() {
1920
}
2021
async foo() {
21-
await 2;
22+
await Promise.resolve();
2223
}
2324
static async bar() {
24-
await 3;
25+
await Promise.resolve();
2526
}
2627
}
2728
`,

0 commit comments

Comments
 (0)