Merge pull request #31 from meAmidos/update-example
Fix the example in the README
This commit is contained in:
commit
cc6b1a47fa
@ -74,8 +74,9 @@ func TestCompleteSignup(t *testing.T) {
|
|||||||
|
|
||||||
CompleteSignUp("me@email.com", mockedEmailSender)
|
CompleteSignUp("me@email.com", mockedEmailSender)
|
||||||
|
|
||||||
if mockedEmailSender.CallsTo.Send != 1 {
|
callsToSend := len(mockedEmailSender.SendCalls())
|
||||||
t.Errorf("Send was called %d times", mockedEmailSender.CallsTo.Send)
|
if callsToSend != 1 {
|
||||||
|
t.Errorf("Send was called %d times", callsToSend)
|
||||||
}
|
}
|
||||||
if sentTo != "me@email.com" {
|
if sentTo != "me@email.com" {
|
||||||
t.Errorf("unexpected recipient: %s", sentTo)
|
t.Errorf("unexpected recipient: %s", sentTo)
|
||||||
|
Loading…
Reference in New Issue
Block a user