Skip to content

Commit 9088920

Browse files
committed
Added test case for formatting nested ternary operators
1 parent 0aac720 commit 9088920

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
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+
////var v =
4+
/////*1*/0 ? 1 :
5+
/////*2*/2 ? 3 :
6+
/////*3*/4;
7+
8+
format.document();
9+
goTo.marker('1');
10+
verify.indentationIs(4);
11+
goTo.marker('2');
12+
verify.indentationIs(4);
13+
goTo.marker('3');
14+
verify.indentationIs(4);

0 commit comments

Comments
 (0)