Add flatten-element-children test
This commit is contained in:
parent
f8171dd47f
commit
dbe249fbd8
1 changed files with 10 additions and 0 deletions
|
@ -25,6 +25,16 @@
|
|||
(is (string= kind "p"))
|
||||
(is (equal props `(:children ("Hello," ,inner)))))))
|
||||
|
||||
(test flatten-element-children
|
||||
(let* ((elm (create-element "p"
|
||||
nil
|
||||
"a"
|
||||
nil
|
||||
(list "b" (list nil "c"))
|
||||
(cons "d" "e")))
|
||||
(children (getf (element-props elm) :children)))
|
||||
(is (equal children (list "a" "b" "c" "d" "e")))))
|
||||
|
||||
(test create-component-element
|
||||
(labels ((comp (&key variant children)
|
||||
(create-element "p"
|
||||
|
|
Loading…
Reference in a new issue