From b3fba676af8e4dcaa98f18c2069781ea128103db Mon Sep 17 00:00:00 2001 From: Alberto Mengali Date: Mon, 21 Oct 2024 10:19:58 +0200 Subject: [PATCH] add a test --- test/preprocess.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/preprocess.jl diff --git a/test/preprocess.jl b/test/preprocess.jl new file mode 100644 index 0000000..e00c4db --- /dev/null +++ b/test/preprocess.jl @@ -0,0 +1,12 @@ +@testitem "Preprocess" begin + using PlutoPlotly: _process_with_names, AttrName + l = Layout(; + title_text = "asd", + title_x = 0.5 + ) + d = _process_with_names(l, Val(true), AttrName(:layout)) + @test d[:title] isa Dict + tit = d[:title] + @test haskey(tit, :text) && tit[:text] == "asd" + @test haskey(tit, :x) && tit[:x] == 0.5 +end \ No newline at end of file