Add test for div element

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
pull/5/head
parent 8f1ddfc940
commit 9d24c8dc57
Signed by: millironx
GPG Key ID: 139C07724802BC5D

@ -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

Loading…
Cancel
Save