ultisuite-backend/internal/api/mail/account_bootstrap_test.go
2026-05-24 00:03:36 +02:00

19 lines
433 B
Go

package mail
import "testing"
func TestIdentityDisplayName(t *testing.T) {
if got := identityDisplayName("Work", "a@b.com"); got != "Work" {
t.Fatalf("got %q", got)
}
if got := identityDisplayName("", "alice@example.com"); got != "alice" {
t.Fatalf("got %q", got)
}
}
func TestDefaultSignatureName(t *testing.T) {
if got := defaultSignatureName("a@b.com"); got != "Signature — a@b.com" {
t.Fatalf("got %q", got)
}
}