Add tests and continue integration test

This commit is contained in:
JBP
2019-08-15 22:05:50 +02:00
parent a050a065b3
commit bc5c9ef1e3
9 changed files with 267 additions and 280 deletions
+15
View File
@@ -0,0 +1,15 @@
package ebay_test
import (
"net/http"
"testing"
"github.com/jybp/ebay"
"github.com/stretchr/testify/assert"
)
func TestOptBuyMarketplace(t *testing.T) {
r, _ := http.NewRequest("", "", nil)
ebay.OptBuyMarketplace("EBAY_US")(r)
assert.Equal(t, "EBAY_US", r.Header.Get("X-EBAY-C-MARKETPLACE-ID"))
}