Skip to content

Commit

Permalink
Merge pull request #21 from skpr/issue/skprmail-field-values
Browse files Browse the repository at this point in the history
Adjust tests to reflect field values
  • Loading branch information
fubarhouse authored Oct 3, 2024
2 parents df3d617 + 4b0129b commit 2d4846d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/mailutils/mailutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ func TestMessageToBytes(t *testing.T) {
msg := &mail.Message{
Header: mail.Header{
HeaderTo: []string{
"test@example.com",
"test_to@example.com",
},
HeaderFrom: []string{
"test@example.com",
"test_from@example.com",
},
},
Body: strings.NewReader("This is a test"),
Expand All @@ -135,7 +135,7 @@ func TestMessageToBytes(t *testing.T) {
b, err := MessageToBytes(msg)
assert.Nil(t, err)

expected := "To: test@example.com\r\nFrom: test@example.com\r\n\r\nThis is a test"
expected := "To: test_to@example.com\r\nFrom: test_from@example.com\r\n\r\nThis is a test"

assert.Equal(t, expected, string(b))
}

0 comments on commit 2d4846d

Please sign in to comment.