1
0
Fork 0
mirror of https://github.com/MillironX/Kelpie.jl.git synced 2024-11-14 13:43:08 +00:00

Refactor capuring pretty strings into its own function

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-04-05 16:10:48 -05:00
parent 5796ec2d31
commit 8646a0ff63
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -7,6 +7,8 @@ using Test
# Set up doctests
DocMeta.setdocmeta!(Kelpie, :DocTestSetup, :(using Kelpie); recursive=true)
prettystring(xml) = @capture_out prettyprint(xml)
# Set up the Bootstrap 5.1.3 starter template in EzXML nodes
function bootstrap_starter()
# Create the nodes
@ -76,7 +78,7 @@ function bootstrap_starter()
link!(html_node, body_node)
link!(doc_node, html_node)
return @capture_out prettyprint(doc_node)
return prettystring(doc_node)
end #function
# Set up the Zurb Foundation 6.7.4 starter template in EzXML nodes
@ -163,7 +165,7 @@ function foundation_template()
link!(html_node, body_node)
link!(doc_node, html_node)
return @capture_out prettyprint(doc_node)
return prettystring(doc_node)
end #function
@testset "Kelpie.jl" begin