Skip to content

Commit 277f459

Browse files
committed
Add tests
1 parent b52747e commit 277f459

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/cases/fourslash/convertFunctionToEs6ClassJsDoc.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
//// /** neat! */
77
//// this.x = 100;
88
//// }
9+
////
10+
//// /** awesome
11+
//// * stuff
12+
//// */
13+
//// fn.prototype.arr = () => { return ""; }
14+
//// /** great */
15+
//// fn.prototype.arr2 = () => [];
916
////
1017
//// /**
1118
//// * This is a cool function!
@@ -20,6 +27,12 @@ verify.fileAfterApplyingRefactorAtMarker('1',
2027
/** neat! */
2128
this.x = 100;
2229
}
30+
/** awesome
31+
* stuff
32+
*/
33+
arr() { return ""; }
34+
/** great */
35+
arr2() { return []; }
2336
/**
2437
* This is a cool function!
2538
*/
@@ -28,4 +41,5 @@ verify.fileAfterApplyingRefactorAtMarker('1',
2841
}
2942
}
3043
44+
3145
`, 'Convert to ES2015 class', 'convert');

0 commit comments

Comments
 (0)