mirror of
https://github.com/cubixle/ebay.git
synced 2026-04-29 23:58:40 +01:00
Add tests and continue integration test
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
Reference in New Issue
Block a user