Skip to content

Commit 9b9032f

Browse files
Add JSXText indentation test
1 parent f962aba commit 9b9032f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
//@Filename: file.tsx
4+
////function foo () {
5+
//// return (
6+
//// <div>
7+
////hello
8+
////goodbye
9+
//// </div>
10+
//// )
11+
////}
12+
13+
goTo.position(21);
14+
verify.textAtCaretIs("return");
15+
goTo.position(38);
16+
verify.textAtCaretIs("<div>");
17+
goTo.position(44);
18+
verify.textAtCaretIs("hello");
19+
goTo.position(50);
20+
verify.textAtCaretIs("goodbye");
21+
22+
format.document();
23+
24+
goTo.position(21);
25+
verify.textAtCaretIs("return");
26+
goTo.position(38);
27+
verify.textAtCaretIs("<div>");
28+
goTo.position(56);
29+
verify.textAtCaretIs("hello");
30+
goTo.position(74);
31+
verify.textAtCaretIs("goodbye");

0 commit comments

Comments
 (0)