Skip to content

Commit

Permalink
fix tests for Stipple version < v0.30.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed May 29, 2024
1 parent 7a7e4f7 commit f51c922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/PlotlyBaseExtension.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@testset "PlotlyBase extension" begin

using Stipple

@testset "Stipple.JSONText" begin
@test ! @isdefined(PBPlotWithEvents) || @isdefined(PlotlyBase)
using PlotlyBase, PlotlyBase.JSON
Expand Down Expand Up @@ -29,7 +28,7 @@
pl_in = stipple_parse(PlotlyBase.Layout{Dict{Symbol, Any}}, pl_d)
pl_in[:xaxis_range] == [1, 2]

if VersionNumber(Genie.Assets.package_version(Stipple)) >= v"0.30.5"
@static if VersionNumber(Genie.Assets.package_version(Stipple)) >= v"0.30.5"
pl_in = stipple_parse(PlotlyBase.Layout{OrderedDict{Symbol, Any}}, pl_d)
@test pl_in[:xaxis_range] == [1, 2]
end
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using StipplePlotly
using Stipple
using Test
using DataFrames

Expand Down

0 comments on commit f51c922

Please sign in to comment.