mirror of
https://github.com/cubixle/ebay.git
synced 2026-04-24 21:24:47 +01:00
16 lines
307 B
Go
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"))
|
|
}
|