1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-02-09 13:47:09 +02:00

Make mailer test a bit more inclusive.

This commit is contained in:
Aaron 2015-01-25 16:55:30 -08:00
parent 8ceeec5420
commit 22efa3b740

View File

@ -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.")
}
}