Created
This commit is contained in:
32
data_test.go
Normal file
32
data_test.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package woogo
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestDataService_All(t *testing.T) {
|
||||
_, err := wooClient.Services.Data.All()
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
|
||||
func TestDataService_Countries(t *testing.T) {
|
||||
_, err := wooClient.Services.Data.Countries()
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
|
||||
func TestDataService_Currencies(t *testing.T) {
|
||||
_, err := wooClient.Services.Data.Currencies()
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
|
||||
func TestDataService_Continents(t *testing.T) {
|
||||
_, err := wooClient.Services.Data.Continents()
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
|
||||
func TestDataService_Continent(t *testing.T) {
|
||||
_, err := wooClient.Services.Data.Continent("AF")
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
Reference in New Issue
Block a user