Skip to content

Commit

Permalink
Add test for cash balance methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed May 31, 2022
1 parent 702c1f1 commit 63d1eb6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/resources/generated_examples_test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,20 @@ describe('Apps.Secret', function() {
});
});

describe('CashBalance', function() {
it('retrieveCashBalance method', async function() {
const cashBalance = await stripe.customers.retrieveCashBalance('cus_123');
expect(cashBalance).not.to.be.null;
});

it('updateCashBalance method', async function() {
const cashBalance = await stripe.customers.updateCashBalance('cus_123', {
settings: {},
});
expect(cashBalance).not.to.be.null;
});
});

describe('Charge', function() {
it('create method', async function() {
const charge = await stripe.charges.create({
Expand Down

0 comments on commit 63d1eb6

Please sign in to comment.