package theme import "testing" func TestDetectFrom(t *testing.T) { cases := map[string]string{ "Dark\n": "flexoki-dark", "Dark": "flexoki-dark", "": "flexoki-light", // macOS light mode leaves the key unset (empty output) "Light": "flexoki-light", } for raw, want := range cases { if got := detectFrom(raw); got != want { t.Errorf("detectFrom(%q) = %q, want %q", raw, got, want) } } }