lib.generators.toKDL: add tests for root-level children

This commit is contained in:
Evy Garden 2026-01-11 12:09:30 +01:00 committed by Austin Horstman
parent 3912c447ee
commit fbd566923a
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,5 @@
rootLevelChild 2
rootLevelChild 1
a 1
argsAndProps 1 2 a=3
b "string"

View file

@ -42,6 +42,10 @@
{ child = [ 2 ]; }
{ child = [ 1 ]; }
];
_children = [
{ rootLevelChild = [ 2 ]; }
{ rootLevelChild = [ 1 ]; }
];
extraAttrs = {
_args = [
2