Skip to content

Commit d3b4723

Browse files
authored
chore(firestore-stripe-payments): fixed build issues
1 parent c91ed94 commit d3b4723

File tree

4 files changed

+19872
-11868
lines changed

4 files changed

+19872
-11868
lines changed

firestore-stripe-payments/functions/__tests__/helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function repeat(
2424
export const waitForDocumentToExistWithField = (
2525
document: DocumentData,
2626
field: string | number,
27-
timeout: number = 10_000
27+
timeout: number = 20_000
2828
): Promise<DocumentData> => {
2929
return new Promise((resolve, reject) => {
3030
let timedOut = false;

firestore-stripe-payments/functions/__tests__/tests/webhookevents/subscriptions.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ describe('subscription webhook events', () => {
6161
stripeSubscription.latest_invoice
6262
);
6363

64-
const { prices } = subscriptionDoc.doc.data();
64+
const { invoice } = subscriptionDoc.doc.data();
6565

66-
expect(prices).toBeDefined();
67-
expect(prices.length).toBe(1);
66+
expect(invoice).toBeDefined();
6867
}, 20000);
6968
});
7069
});

0 commit comments

Comments
 (0)