Skip to content

Commit

Permalink
fix error in change_plotly_version
Browse files Browse the repository at this point in the history
  • Loading branch information
disberd committed Mar 21, 2024
1 parent dac6e7a commit ec5c53f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ end


## Plotly Version ##
function change_plotly_version(ver::String)
function change_plotly_version(v)
ver = VersionNumber(v)
maybe_add_plotly_local(ver)
PLOTLY_VERSION[] = ver
end
Expand Down
8 changes: 6 additions & 2 deletions test/basic_coverage.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test
using PlutoPlotly
using PlutoPlotly: _preprocess, SKIP_FLOAT32, skip_float32
using PlutoPlotly: _preprocess, SKIP_FLOAT32, skip_float32, ARTIFACT_VERSION
using PlutoPlotly.PlotlyBase: ColorScheme, Colors, Cycler, templates

@test SKIP_FLOAT32[] == false
Expand Down Expand Up @@ -35,4 +35,8 @@ let p = plot(rand(4))
@test_throws "invalid keyword arguments" change_image_options!(p; heights = 400)
end

@test plutoplotly_paste_receiver() isa PlutoPlotly.HypertextLiteral.Result
@test plutoplotly_paste_receiver() isa PlutoPlotly.HypertextLiteral.Result

@test get_plotly_version() === ARTIFACT_VERSION
@test change_plotly_version("2.30") === VersionNumber("2.30.0")
@test get_plotly_version() === VersionNumber("2.30.0")

0 comments on commit ec5c53f

Please sign in to comment.