feat(platform): add the notification inbox and deterministic match search

This commit is contained in:
shira committed 2026-10-09 13:14:46 +03:00
1 parent 5edff21d2d
commit 0b11021b16
169 files changed
+17083 -443

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package config
import "testing"
func TestLoadFromEnvReadsTheSyntheticNotificationSwitch(t *testing.T) {
settings, err := LoadFromEnv(testEnvironment(nil))
if err != nil || settings.NotificationSyntheticEnabled {
t.Fatalf("default = %t, %v, want off", settings.NotificationSyntheticEnabled, err)
}
settings, err = LoadFromEnv(testEnvironment(map[string]string{"NOTIFICATION_SYNTHETIC_ENABLED": " True "}))
if err != nil || !settings.NotificationSyntheticEnabled {
t.Fatalf("enabled = %t, %v, want on", settings.NotificationSyntheticEnabled, err)
}
if _, err := LoadFromEnv(testEnvironment(map[string]string{"NOTIFICATION_SYNTHETIC_ENABLED": "yes"})); err == nil {
t.Fatal("LoadFromEnv() accepted a value that is not true or false")
}
}