1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-28 08:58:38 +02:00
authboss/defaults/smtp_mailer_test.go
Aaron L 982025bbc3 Finish implementing and testing confirm
- Rejig tests to remember to test the smtp mailer
2018-02-27 07:14:30 -08:00

25 lines
383 B
Go

package defaults
import "testing"
func TestSMTPMailer(t *testing.T) {
t.Skip("must implement test against real smtp servers here")
}
func TestSMTPMailerPanic(t *testing.T) {
t.Parallel()
_ = NewSMTPMailer("server", nil)
recovered := false
defer func() {
recovered = recover() != nil
}()
NewSMTPMailer("", nil)
if !recovered {
t.Error("Should have panicked.")
}
}