1
0
Fork 0
mirror of https://github.com/MillironX/Kelpie.jl.git synced 2025-01-15 01:19:04 -05:00

Add test for div element

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-04-06 09:02:32 -05:00
parent 8f1ddfc940
commit 9d24c8dc57
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -239,5 +239,15 @@ end #function
@testset "Behaviors" begin
# Test that attributes with underscores become attributes with dashes
@test occursin("<i data-tooltip=\"foo\"/>", prettystring(i(; data_tooltip="foo")))
# Test that edge case functions can slurp their arguments
@test occursin(
"""
<div>
<p>foo</p>
<p>bar</p>
</div>""",
prettystring(html_div(p("foo"), p("bar"))),
)
end #testset
end #testset