From 3d46d11d6ed6edfb0fe217e63cf8842ca83e15ad Mon Sep 17 00:00:00 2001 From: Victor Hugo Avelar Ossorio Date: Sat, 12 Oct 2024 12:15:43 +0000 Subject: [PATCH] fix(common_types): remove unnecessary test --- mollie/custom_types_test.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/mollie/custom_types_test.go b/mollie/custom_types_test.go index b376218..1dbcf0f 100644 --- a/mollie/custom_types_test.go +++ b/mollie/custom_types_test.go @@ -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