Skip to content

Commit

Permalink
fix(common_types): remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorAvelar committed Oct 12, 2024
1 parent 1067fe9 commit 3d46d11
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions mollie/custom_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,30 +73,6 @@ func TestContextValues_UnmarshalJSON(t *testing.T) {
}
}

func TestAmount_URLEncodingSimple(t *testing.T) {
tests := []struct {
name string
a Amount
want string
}{
{
name: "Test URL encoding simple.",
a: Amount{
Value: "10.00",
Currency: "EUR",
},
want: "currency=EUR&value=10.00",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
v, err := query.Values(tt.a)
assert.Nil(t, err)
assert.Equal(t, tt.want, v.Encode())
})
}
}

func TestAmount_URLEncodingNested(t *testing.T) {
tests := []struct {
name string
Expand Down

0 comments on commit 3d46d11

Please sign in to comment.