From 1e6fd3c1dd03f52137205f3e66f6dee20ac4fe17 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 13 Aug 2023 14:02:59 +0100 Subject: Switch to go.awhk.org/core for testing --- mailer_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mailer_test.go') diff --git a/mailer_test.go b/mailer_test.go index e1376c3..7da07ae 100644 --- a/mailer_test.go +++ b/mailer_test.go @@ -8,12 +8,15 @@ import ( "testing" "time" - "github.com/stretchr/testify/assert" + "github.com/google/go-cmp/cmp" + "go.awhk.org/core" "go.awhk.org/fwdsms/pkg/twilio" ) -func TestMailer_newEmail(t *testing.T) { +func TestMailer_newEmail(s *testing.T) { + t := core.T{T: s, Options: []cmp.Option{cmp.AllowUnexported(email{})}} + m := newMailer(&Config{ Message: Message{ From: "fwdsms@example.com", @@ -48,5 +51,5 @@ Hello World!`, "", }, "\r\n")), } - assert.Equal(t, wants, m.newEmail(sms)) + t.AssertEqual(wants, m.newEmail(sms)) } -- cgit v1.2.3-70-g09d2