Skip to content

Commit

Permalink
test(sms): Increased unit test coverage.
Browse files Browse the repository at this point in the history
Signed-off-by: Flc゛ <[email protected]>
  • Loading branch information
flc1125 committed Jan 10, 2024
1 parent a0fff31 commit 7aaf958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sms/mitake/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ func TestProvider(t *testing.T) {
t.Fatal("smbody error")
}

w.Write([]byte("")) //nolint:errcheck
w.Write([]byte("hello")) //nolint:errcheck
}))
defer srv.Close()

p := New(username, password,
WithAPI(srv.URL),
WithHTTPClient(http.DefaultClient),
)

err := p.Send(context.Background(), &sms.Phone{
Expand Down

0 comments on commit 7aaf958

Please sign in to comment.