Fix tests
This commit is contained in:
parent
d8e10e1a58
commit
bef22f5756
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ func TestNewMail(t *testing.T) {
|
||||||
assert.Equal(t, "test@example.com", mail.from)
|
assert.Equal(t, "test@example.com", mail.from)
|
||||||
assert.Equal(t, "test@otherdomain.com", mail.to)
|
assert.Equal(t, "test@otherdomain.com", mail.to)
|
||||||
assert.Equal(t, "Testmail", mail.subject)
|
assert.Equal(t, "Testmail", mail.subject)
|
||||||
assert.Equal(t, "Hi,", mail.greeting) // Default greeting
|
assert.Equal(t, "", mail.greeting)
|
||||||
assert.Len(t, mail.introLines, 2)
|
assert.Len(t, mail.introLines, 2)
|
||||||
assert.Equal(t, "This is a line", mail.introLines[0])
|
assert.Equal(t, "This is a line", mail.introLines[0])
|
||||||
assert.Equal(t, "And another one", mail.introLines[1])
|
assert.Equal(t, "And another one", mail.introLines[1])
|
||||||
|
|
|
@ -48,8 +48,8 @@ type testNotifiable struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// RouteForMail routes a test notification for mail
|
// RouteForMail routes a test notification for mail
|
||||||
func (t *testNotifiable) RouteForMail() string {
|
func (t *testNotifiable) RouteForMail() (string, error) {
|
||||||
return "some@email.com"
|
return "some@email.com", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// RouteForDB routes a test notification for db
|
// RouteForDB routes a test notification for db
|
||||||
|
|
Loading…
Reference in a new issue