mirror of
https://github.com/volatiletech/authboss.git
synced 2025-09-16 09:06:20 +02:00
Make mailer test a bit more inclusive.
This commit is contained in:
@@ -40,4 +40,12 @@ func TestMailer(t *testing.T) {
|
||||
if !strings.Contains(str, "To: Jake <some@email.com>, Noname <a@a.com>") {
|
||||
t.Error("To line not present.")
|
||||
}
|
||||
|
||||
if !strings.Contains(str, "No html here") {
|
||||
t.Error("Text body not present.")
|
||||
}
|
||||
|
||||
if !strings.Contains(str, "<html>body</html>") {
|
||||
t.Error("Html body not present.")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user