Skip to content

Commit d9a68e3

Browse files
author
Arthur Ozga
committed
add tests for trivia
1 parent 7c22e50 commit d9a68e3

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
// @noUnusedLocals: true
4+
//// [| namespace greeter {
5+
//// /* comment1 */
6+
//// class /* comment2 */ class1 {
7+
//// }
8+
//// } |]
9+
10+
verify.rangeAfterCodeFix(`namespace greeter {
11+
}`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 0);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
// @noUnusedLocals: true
4+
//// [| namespace greeter {
5+
//// /* comment1 */
6+
//// class /* comment2 */ class1 {
7+
//// }
8+
//// } |]
9+
10+
verify.rangeAfterCodeFix(`namespace greeter {
11+
/* comment1 */
12+
class /* comment2 */ _class1 {
13+
}
14+
}`, /*includeWhiteSpace*/ false, /*errorCode*/ undefined, /*index*/ 1);

0 commit comments

Comments
 (0)