forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ulbrich Robert <[email protected]>
- Loading branch information
1 parent
8be8c46
commit 64f3333
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,11 @@ func TestEmailCreation(t *testing.T) { | |
} | ||
|
||
body := createMailBody("[email protected]", &email) | ||
assert.Equal(t, "From: [email protected]\r\nTo: [email protected],[email protected]\r\nSubject: subject\r\nContent-Type: text/html; charset=\"UTF-8\"\r\n\r\nEmail Body", body) | ||
assert.Contains(t, body, "From: [email protected]\r\n") | ||
assert.Contains(t, body, "To: [email protected],[email protected]") | ||
assert.Contains(t, body, "Subject: subject\r\n") | ||
assert.Contains(t, body, "Content-Type: text/html; charset=\"UTF-8\"\r\n") | ||
assert.Contains(t, body, "Email Body") | ||
} | ||
|
||
func TestNewSmtpEmailer(t *testing.T) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters