Skip to content

Commit c30f400

Browse files
committed
swap the invoiceitems order
1 parent 4104808 commit c30f400

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,13 @@ describe(c.blue('[TEST] api management'), () => {
553553
assert.equal(res.statusCode, 200);
554554
const stripe = new Stripe(STRIPE_SECRET);
555555

556-
await stripe.invoiceItems.create({
556+
const invoice = await stripe.invoices.create({
557557
customer: this.previousCustomer,
558-
price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
559558
});
560-
561-
const invoice = await stripe.invoices.create({
559+
await stripe.invoiceItems.create({
562560
customer: this.previousCustomer,
561+
price: 'price_1Lm1siCHN72mG1oKkk3Jh1JT', // test $123 one time
562+
invoice: invoice.id,
563563
});
564564

565565
await stripe.invoices.finalizeInvoice(invoice.id);

0 commit comments

Comments
 (0)