Skip to content

Commit 1516129

Browse files
authored
Release-October-13 (#569)
1 parent 88525f5 commit 1516129

File tree

5 files changed

+19873
-11869
lines changed

5 files changed

+19873
-11869
lines changed

firestore-stripe-payments/_emulator/firebase.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extensions": {
3-
"firestore-stripe-payments": "../"
3+
"firestore-stripe-payments": ".."
44
},
55
"storage": {
66
"rules": "storage.rules"

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)