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 19, 2023
1 parent 728e974 commit 9f24db1
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 @@ -541,13 +541,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 9f24db1

Please sign in to comment.