Skip to content

Commit

Permalink
swap the invoiceitems order
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 22, 2023
1 parent 4104808 commit c30f400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,13 +553,13 @@ describe(c.blue('[TEST] api management'), () => {
assert.equal(res.statusCode, 200);
const stripe = new Stripe(STRIPE_SECRET);

await stripe.invoiceItems.create({
const invoice = await stripe.invoices.create({
customer: this.previousCustomer,
price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
});

const invoice = await stripe.invoices.create({
await stripe.invoiceItems.create({
customer: this.previousCustomer,
price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
invoice: invoice.id,
});

await stripe.invoices.finalizeInvoice(invoice.id);
Expand Down

0 comments on commit c30f400

Please sign in to comment.