chore(backend): vendor htmx 2.0.4 and add WEB_PASSWORD config

This commit is contained in:
2026-07-25 22:57:40 +07:00
parent 6030a985fa
commit e3d86e826c
3 changed files with 20 additions and 3 deletions
+13
View File
@@ -515,3 +515,16 @@ func TestBookmarkContinueURL(t *testing.T) {
})
}
}
func TestLoadConfigWebPassword(t *testing.T) {
t.Setenv("API_TOKEN", "token-abc")
t.Setenv("WEB_PASSWORD", "hunter2")
if got := loadConfig().WebPassword; got != "hunter2" {
t.Fatalf("WebPassword = %q, want hunter2", got)
}
t.Setenv("WEB_PASSWORD", "")
if got := loadConfig().WebPassword; got != "" {
t.Fatalf("WebPassword = %q with the variable unset, want empty", got)
}
}