Files
ebay/offer_test.go
2019-08-15 22:05:50 +02:00

16 lines
307 B
Go

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"))
}