From af3048d5a8ad4304c8f704635cd956f0f402c624 Mon Sep 17 00:00:00 2001 From: Alexandru Stefan Date: Fri, 13 Dec 2024 17:54:26 +0200 Subject: [PATCH] chore: more fixes --- .../marinade-ts-cli/__tests__/orderUnstakeAndClaim.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/marinade-ts-cli/__tests__/orderUnstakeAndClaim.spec.ts b/packages/marinade-ts-cli/__tests__/orderUnstakeAndClaim.spec.ts index ca7a722..9cc6580 100644 --- a/packages/marinade-ts-cli/__tests__/orderUnstakeAndClaim.spec.ts +++ b/packages/marinade-ts-cli/__tests__/orderUnstakeAndClaim.spec.ts @@ -73,7 +73,9 @@ describe('Order unstake and claim using CLI', () => { ) expect(tickets.size).toBe(1) const startTime = Date.now() - let ticket: [PublicKey, TicketAccount] = tickets.entries().next().value + let ticket: [PublicKey, TicketAccount, undefined] = tickets + .entries() + .next().value while ( !ticket[1].ticketDueDate || isNaN(ticket[1].ticketDueDate.getTime())