Skip to content

Commit 662ca50

Browse files
committed
backport v2 PRs
1 parent 4050b2a commit 662ca50

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

PlotThemes/test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[deps]
2+
PlotUtils = "995b91a9-d308-5afd-9ec6-746e21dbc043"
23
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

PlotThemes/test/runtests.jl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
using PlotThemes
22
using Test, PlotUtils
33

4-
@test in(:sand, keys(PlotThemes._themes))
4+
@testset "basics" begin
5+
@test :sand keys(PlotThemes._themes)
6+
7+
palette = theme_palette(:wong)
8+
@test palette isa ColorPalette
9+
10+
thm = PlotTheme(PlotThemes._dark; palette)
11+
@test thm isa PlotTheme
12+
13+
add_theme(:custom, thm)
14+
@test theme_palette(:custom) == palette
15+
end

0 commit comments

Comments
 (0)