Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Dec 17, 2024
1 parent bf0b9af commit c2b2819
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,8 @@
{
"created": 1028554472,
"credit": null,
"credit_grant": {
"amount": {
"monetary": null,
"type": "monetary"
},
"applicability_config": {
"scope": {
"price_type": "metered"
}
},
"category": "paid",
"created": 1028554472,
"customer": {
"created": 1028554472,
"default_source": null,
"description": null,
"email": null,
"id": "If0SFBpGVu",
"livemode": true,
"object": "customer",
"shipping": null
},
"effective_at": null,
"expires_at": null,
"id": "If0SFBpGVu",
"livemode": true,
"metadata": {
"undefined": "metadata"
},
"name": null,
"object": "billing.credit_grant",
"test_clock": null,
"updated": 234430277,
"voided_at": null
},
"debit": null,
"effective_at": 247108043,
"id": "obj_123",
"livemode": true,
"object": "billing.credit_balance_transaction",
"test_clock": null,
Expand All @@ -58,4 +22,4 @@
}
]
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@
},
"type": "column"
},
"credit_grant": {
"column": "credit_grant",
"type": "column"
},
"debit": {
"column": "debit",
"fields": {
Expand Down Expand Up @@ -170,10 +166,6 @@
"column": "effective_at",
"type": "column"
},
"id": {
"column": "id",
"type": "column"
},
"livemode": {
"column": "livemode",
"type": "column"
Expand Down Expand Up @@ -216,4 +208,4 @@
}
}
}
}
}
13 changes: 1 addition & 12 deletions testdata/mock/query/GetBillingCreditGrants/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,8 @@
},
"category": "paid",
"created": 1028554472,
"customer": {
"created": 1028554472,
"default_source": null,
"description": null,
"email": null,
"id": "VDgArzo7mA",
"livemode": true,
"object": "customer",
"shipping": null
},
"effective_at": null,
"expires_at": null,
"id": "obj_123",
"livemode": true,
"metadata": {
"undefined": "metadata"
Expand All @@ -47,4 +36,4 @@
}
]
}
]
]
14 changes: 2 additions & 12 deletions testdata/mock/query/GetBillingCreditGrants/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
},
"expand": {
"type": "literal",
"value": [
"CHJYcI1Tyh"
]
"value": ["CHJYcI1Tyh"]
},
"limit": {
"type": "literal",
Expand Down Expand Up @@ -96,10 +94,6 @@
"column": "created",
"type": "column"
},
"customer": {
"column": "customer",
"type": "column"
},
"effective_at": {
"column": "effective_at",
"type": "column"
Expand All @@ -108,10 +102,6 @@
"column": "expires_at",
"type": "column"
},
"id": {
"column": "id",
"type": "column"
},
"livemode": {
"column": "livemode",
"type": "column"
Expand Down Expand Up @@ -166,4 +156,4 @@
}
}
}
}
}

0 comments on commit c2b2819

Please sign in to comment.