feat: SMTP salida propio en webhook de soporte
This commit is contained in:
@@ -56,3 +56,14 @@ func TestSoporteWebhookConfigAsignarANil(t *testing.T) {
|
||||
t.Errorf("AsignarA debe ser nil por defecto, got %v", *cfg.AsignarA)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSoporteWebhookConfigSmtpDefaults(t *testing.T) {
|
||||
cfg := SoporteWebhookConfig{Nombre: "SMTP Test"}
|
||||
// Go zero values — los defaults reales los aplica GORM o el controller
|
||||
if cfg.SmtpHost != "" {
|
||||
t.Errorf("SmtpHost debe ser vacío por defecto, got %q", cfg.SmtpHost)
|
||||
}
|
||||
if cfg.SmtpPort != 0 {
|
||||
t.Errorf("SmtpPort debe ser 0 en Go, got %d", cfg.SmtpPort)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user