Skip to content

Commit

Permalink
Merge pull request #280 from arxdsilva/testify-end
Browse files Browse the repository at this point in the history
helpers/mail: add testify to new test
  • Loading branch information
thinkingserious authored Oct 5, 2018
2 parents ee1b3af + 3bd52f7 commit ff34a53
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions helpers/mail/mail_v3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,21 +687,10 @@ func TestV3NewSingleEmailWithEmptyHTMLContent(t *testing.T) {
m, _ := json.Marshal(message)
fmt.Println(string(m))

if message == nil {
t.Errorf("NewV3MailInit() shouldn't return nil")
}

if message.From == nil {
t.Errorf("From shouldn't be nil")
}

if message.Subject != subject {
t.Errorf("Subject should be %s, got %s", subject, message.Subject)
}

if message.Content == nil {
t.Errorf("Content shouldn't be nil")
}
assert.NotNil(t, message, "NewV3MailInit() shouldn't return nil")
assert.NotNil(t, message.From, "From shouldn't be nil")
assert.Equal(t, message.Subject, subject, fmt.Sprintf("Subject should be %s, got %s", subject, message.Subject))
assert.NotNil(t, message.Content, "Content shouldn't be nil")
}

func TestV3NewClickTrackingSetting(t *testing.T) {
Expand Down

0 comments on commit ff34a53

Please sign in to comment.