Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
disberd committed Oct 21, 2024
1 parent dcebd90 commit b3fba67
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/preprocess.jl
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b3fba67

Please sign in to comment.