Skip to content

Commit

Permalink
chore(firestore-stripe-payments): fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dackers86 authored Oct 11, 2023
1 parent c91ed94 commit d3b4723
Show file tree
Hide file tree
Showing 4 changed files with 19,872 additions and 11,868 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function repeat(
export const waitForDocumentToExistWithField = (
document: DocumentData,
field: string | number,
timeout: number = 10_000
timeout: number = 20_000
): Promise<DocumentData> => {
return new Promise((resolve, reject) => {
let timedOut = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ describe('subscription webhook events', () => {
stripeSubscription.latest_invoice
);

const { prices } = subscriptionDoc.doc.data();
const { invoice } = subscriptionDoc.doc.data();

expect(prices).toBeDefined();
expect(prices.length).toBe(1);
expect(invoice).toBeDefined();
}, 20000);
});
});
Loading

0 comments on commit d3b4723

Please sign in to comment.