Skip to content

Commit c3e7b9b

Browse files
committed
some more tests
1 parent b86ed05 commit c3e7b9b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/PlotlyLight.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ plotlyjs = let
2020
end
2121
bind_artifact!(artifacts_toml, "plotlylatest", plotlylatest_hash; force=true)
2222
end
23-
joinpath(artifact_path(plotlylatest_hash), "plotlylatest")
23+
joinpath(artifact_path(plotlylatest_hash), "plotly-latest.min.js")
2424
end
2525

2626

test/runtests.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,18 @@ using Test
77
@test Plot(Config(x = 1:10), Config(title="Title")) isa Plot
88
@test Plot(Config(x = 1:10), Config(title="Title"), Config(displaylogo=true)) isa Plot
99
end
10+
@testset "src" begin
11+
p = Plot(Config(y=1:10))
12+
13+
PlotlyLight.src!(:cdn)
14+
@test occursin("plotly-latest.min.js", repr("text/html", p))
15+
16+
PlotlyLight.src!(:none)
17+
@test !occursin("plotly-latest.min.js", repr("text/html", p))
18+
19+
PlotlyLight.src!(:standalone)
20+
@test length(repr("text/html", p)) > 1000
21+
22+
PlotlyLight.src!(:local)
23+
@test occursin("artifact", repr("text/html", p))
24+
end

0 commit comments

Comments
 (0)