Created
This commit is contained in:
21
report_test.go
Normal file
21
report_test.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package woogo
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestReportService_All(t *testing.T) {
|
||||
_, err := wooClient.Services.Report.All()
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
|
||||
func TestReportService_SalesReports(t *testing.T) {
|
||||
req := SalesReportsQueryParams{
|
||||
DateMin: "2022-01-01",
|
||||
DateMax: "2022-01-01",
|
||||
}
|
||||
_, err := wooClient.Services.Report.SalesReports(req)
|
||||
assert.Equal(t, nil, err)
|
||||
}
|
||||
Reference in New Issue
Block a user