Skip to content

Commit f4abafd

Browse files
committed
fix string and live test
1 parent a599a44 commit f4abafd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/api/functions/stripe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ export const getPaymentMethodDescriptionString = ({
232232
if (!cardData) {
233233
return null;
234234
}
235-
return `${friendlyName} (${cardBrandMap[cardData.display_brand || "unknown"]} ending in ${cardData.last4}`;
235+
return `${friendlyName} (${cardBrandMap[cardData.display_brand || "unknown"]} ending in ${cardData.last4})`;
236236
case "card_present":
237237
const cardPresentData = paymentMethod[paymentMethodType];
238238
if (!cardPresentData) {
239239
return null;
240240
}
241-
return `${friendlyName} (${cardBrandMap[cardPresentData.brand || "unknown"]} ending in ${cardPresentData.last4}`;
241+
return `${friendlyName} (${cardBrandMap[cardPresentData.brand || "unknown"]} ending in ${cardPresentData.last4})`;
242242
}
243243
};

tests/live/clearSession.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ describe("Session clearing tests", async () => {
2929
});
3030
expect(clearResponse.status).toBe(201);
3131
// token should be revoked
32+
// add a sleep because delay shouldn't fail the pipeline
33+
await new Promise((r) => setTimeout(r, 1000));
3234
const responseFail = await fetch(`${baseEndpoint}/api/v1/protected`, {
3335
method: "GET",
3436
headers: {

0 commit comments

Comments
 (0)