@@ -575,7 +575,7 @@ suite('JSON', () => {
575575 } ) ;
576576
577577 test ( 'tree: find location' , ( ) => {
578- let root = parseTree ( '{ "key1": { "key11": [ "val111", "val112" ] }, "key2": [ { "key21": false, "key22": 221 }, null, [{}] ] }' ) ;
578+ let root = parseTree ( '{ "key1": { "key11": [ "val111", "val112" ] }, "key2": [ { "key21": false, "key22": 221 }, null, [{}] ], "key3": { "key31":, "key32": 32 } }' ) ;
579579 assertNodeAtLocation ( root , [ 'key1' ] , { key11 : [ 'val111' , 'val112' ] } ) ;
580580 assertNodeAtLocation ( root , [ 'key1' , 'key11' ] , [ 'val111' , 'val112' ] ) ;
581581 assertNodeAtLocation ( root , [ 'key1' , 'key11' , 0 ] , 'val111' ) ;
@@ -586,6 +586,8 @@ suite('JSON', () => {
586586 assertNodeAtLocation ( root , [ 'key2' , 1 ] , null ) ;
587587 assertNodeAtLocation ( root , [ 'key2' , 2 ] , [ { } ] ) ;
588588 assertNodeAtLocation ( root , [ 'key2' , 2 , 0 ] , { } ) ;
589+ assertNodeAtLocation ( root , [ 'key3' , 'key31' , 'key311' ] , undefined ) ;
590+ assertNodeAtLocation ( root , [ 'key3' , 'key32' ] , 32 ) ;
589591 } ) ;
590592
591593 test ( 'location: matches' , ( ) => {
0 commit comments