Skip to content

Commit

Permalink
merge with develop and adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress committed Feb 7, 2024
1 parent a3a2b47 commit 35c9f05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions pkg/payment/payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func TestSearch(t *testing.T) {
ctx: context.Background(),
},
want: nil,
wantErr: "error unmarshaling response: invalid character 'i' looking for beginning of value",
wantErr: "invalid character 'i' looking for beginning of value",
},
{
name: "should_return_formatted_response",
Expand All @@ -242,6 +242,9 @@ func TestSearch(t *testing.T) {
},
args: args{
ctx: context.Background(),
dto: SearchRequest{
Limit: "30",
},
},
want: &SearchResponse{
Paging: PagingResponse{
Expand Down Expand Up @@ -348,7 +351,7 @@ func TestGet(t *testing.T) {
ctx: context.Background(),
},
want: nil,
wantErr: "error unmarshaling response: invalid character 'i' looking for beginning of value",
wantErr: "invalid character 'i' looking for beginning of value",
},
{
name: "should_return_formatted_response",
Expand Down Expand Up @@ -459,7 +462,7 @@ func TestCancel(t *testing.T) {
ctx: context.Background(),
},
want: nil,
wantErr: "error unmarshaling response: invalid character 'i' looking for beginning of value",
wantErr: "invalid character 'i' looking for beginning of value",
},
{
name: "should_return_formatted_response",
Expand Down Expand Up @@ -570,7 +573,7 @@ func TestCapture(t *testing.T) {
ctx: context.Background(),
},
want: nil,
wantErr: "error unmarshaling response: invalid character 'i' looking for beginning of value",
wantErr: "invalid character 'i' looking for beginning of value",
},
{
name: "should_return_formatted_response",
Expand Down Expand Up @@ -682,7 +685,7 @@ func TestCaptureAmount(t *testing.T) {
ctx: context.Background(),
},
want: nil,
wantErr: "error unmarshaling response: invalid character 'i' looking for beginning of value",
wantErr: "invalid character 'i' looking for beginning of value",
},
{
name: "should_return_formatted_response",
Expand Down
4 changes: 2 additions & 2 deletions pkg/paymentmethod/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TestList(t *testing.T) {
ctx: context.Background(),
},
want: nil,
wantErr: "error unmarshaling response: invalid character 'i' looking for beginning of value",
wantErr: "invalid character 'i' looking for beginning of value",
},
{
name: "should_return_formatted_response",
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestList(t *testing.T) {
if err != nil {
gotErr = err.Error()
}

if gotErr != tt.wantErr {
t.Errorf("client.List() error = %v, wantErr %v", err, tt.wantErr)
}
Expand Down

0 comments on commit 35c9f05

Please sign in to comment.