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:
parent
8ceeec5420
commit
22efa3b740
@ -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.")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user