aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/web_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/web_test.go')
-rw-r--r--internal/web/web_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/web/web_test.go b/internal/web/web_test.go
index 205e42f..c0a68c5 100644
--- a/internal/web/web_test.go
+++ b/internal/web/web_test.go
@@ -144,6 +144,9 @@ func TestTitleRuleAndTagHash(t *testing.T) {
if th.TitleRuleClass() != "titles-dots" || !th.TagHash || !strings.Contains(th.CSS(), ".page-title, .post-title { border-color:#b03a48; }") {
t.Errorf("from form: %+v\n%s", th, th.CSS())
}
+ if th = ThemeFromForm(th, url.Values{"title_rule": {"colons"}}); th.TitleRuleClass() != "titles-colons" {
+ t.Errorf("colons: %+v", th)
+ }
th = ThemeFromForm(th, url.Values{"title_rule": {"neon"}})
if th.TitleRuleClass() != "" || th.TagHash {
t.Errorf("junk rule falls back, unticked box is off: %+v", th)