Skip to content

Commit

Permalink
fix: added body param in mock_client (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 authored Apr 23, 2024
1 parent 3e70915 commit e50e188
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions client/mock_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/page_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func getTestClient(t *testing.T) *MockBaseClient {
gomock.Any(),
gomock.Any()).
DoAndReturn(func(method string, rawURL string, data url.Values,
headers map[string]interface{}) (*http.Response, error) {
headers map[string]interface{}, body ...interface{}) (*http.Response, error) {
response := map[string]interface{}{
"end": 4,
"first_page_uri": "/2010-04-01/Accounts/ACXX/Messages.json?From=9999999999&PageNumber=&To=4444444444&PageSize=2&Page=0",
Expand Down

0 comments on commit e50e188

Please sign in to comment.