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:
parent
8f1ddfc940
commit
9d24c8dc57
1 changed files with 10 additions and 0 deletions
|
@ -239,5 +239,15 @@ end #function
|
||||||
@testset "Behaviors" begin
|
@testset "Behaviors" begin
|
||||||
# Test that attributes with underscores become attributes with dashes
|
# Test that attributes with underscores become attributes with dashes
|
||||||
@test occursin("<i data-tooltip=\"foo\"/>", prettystring(i(; data_tooltip="foo")))
|
@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
|
||||||
end #testset
|
end #testset
|
||||||
|
|
Loading…
Reference in a new issue