Skip to content

Commit

Permalink
Added SubscriptionID Struct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouge committed Sep 26, 2024
1 parent dcca74c commit a02467f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/stubs/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func SubscriptionGetResponse() []byte {
"id": "1",
"attributes": {
"store_id": 1,
"subscription_id": 1,
"customer_id": 1,
"order_id": 1,
"order_item_id": 1,
Expand Down Expand Up @@ -387,6 +388,7 @@ func SubscriptionCancelResponse() []byte {
"id": "1",
"attributes": {
"store_id": 1,
"subscription_id": 1,
"customer_id": 1,
"order_id": 1,
"order_item_id": 1,
Expand Down
2 changes: 2 additions & 0 deletions subscriptions_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func TestSubscriptionsService_Get(t *testing.T) {
ID: "1",
Attributes: Subscription{
StoreID: 1,
SubscriptionID: 1,
CustomerID: 1,
OrderID: 1,
OrderItemID: 1,
Expand Down Expand Up @@ -186,6 +187,7 @@ func TestSubscriptionsService_Cancel(t *testing.T) {
ID: "1",
Attributes: Subscription{
StoreID: 1,
SubscriptionID: 1,
CustomerID: 1,
OrderID: 1,
OrderItemID: 1,
Expand Down

0 comments on commit a02467f

Please sign in to comment.