Skip to content

Commit d6ccee6

Browse files
Cleans up and adds nested case to test
1 parent c7d691d commit d6ccee6

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

tests/cases/fourslash/getOutliningForObjectsInArray.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,34 @@
2222
////
2323
////// same behavior for nested arrays
2424
//// const w =[| [
25-
//// [|[ a: 0 ]|],
26-
//// [|[ b: 1 ]|],
27-
//// [|[ c: 2 ]|]
25+
//// [|[ 0 ]|],
26+
//// [|[ 1 ]|],
27+
//// [|[ 2 ]|]
2828
//// ]|];
2929
////
3030
//// const z =[| [
3131
//// [|[
32-
//// a: 0
32+
//// 0
3333
//// ]|],
3434
//// [|[
35-
//// b: 1
35+
//// 1
3636
//// ]|],
3737
//// [|[
38-
//// c: 2
38+
//// 2
39+
//// ]|]
40+
//// ]|];
41+
////
42+
////// multiple levels of nesting work as expected
43+
//// const z =[| [
44+
//// [|[
45+
//// [|{ hello: 0 }|]
46+
//// ]|],
47+
//// [|[
48+
//// [|{ hello: 3 }|]
49+
//// ]|],
50+
//// [|[
51+
//// [|{ hello: 5 }|],
52+
//// [|{ hello: 7 }|]
3953
//// ]|]
4054
//// ]|];
4155

0 commit comments

Comments
 (0)