aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/notify/config_test.go')
-rw-r--r--internal/notify/config_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/notify/config_test.go b/internal/notify/config_test.go
index 818e88f..52781ac 100644
--- a/internal/notify/config_test.go
+++ b/internal/notify/config_test.go
@@ -63,3 +63,15 @@ func TestLoadConfigClamps(t *testing.T) {
t.Errorf("got %+v", got)
}
}
+
+func TestLoadConfigSoundTheme(t *testing.T) {
+ if got := LoadConfig(writeConfig(t, `{"soundTheme": "mine"}`)).SoundTheme; got != "mine" {
+ t.Errorf("soundTheme = %q, want mine", got)
+ }
+ if got := LoadConfig(writeConfig(t, `{"soundTheme": ""}`)).SoundTheme; got != "freedesktop" {
+ t.Errorf("empty soundTheme = %q, want freedesktop", got)
+ }
+ if got := LoadConfig(writeConfig(t, `{"soundTheme": 4, "liveCap": 3}`)); got.SoundTheme != "freedesktop" || got.LiveCap != 3 {
+ t.Errorf("got %+v", got)
+ }
+}