From 6a6deea7d85208a52e011a5fca4fc1ab220fd735 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 24 Nov 2023 11:40:07 +0000 Subject: [PATCH] Fix js-sdk types for TImestampToEventResponse (#11928) * Fix js-sdk types for TImestampToEventResponse Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update DateSeparator-test.tsx --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- test/components/views/messages/DateSeparator-test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/components/views/messages/DateSeparator-test.tsx b/test/components/views/messages/DateSeparator-test.tsx index d83c422931..f3ecaa8bf3 100644 --- a/test/components/views/messages/DateSeparator-test.tsx +++ b/test/components/views/messages/DateSeparator-test.tsx @@ -170,7 +170,7 @@ describe("DateSeparator", () => { const returnedEventId = "$abc"; mockClient.timestampToEvent.mockResolvedValue({ event_id: returnedEventId, - origin_server_ts: String(returnedDate.getTime()), + origin_server_ts: returnedDate.getTime(), } satisfies TimestampToEventResponse); const jumpToXButton = await screen.findByTestId(testCase.jumpButtonTestId); fireEvent.click(jumpToXButton); @@ -207,7 +207,7 @@ describe("DateSeparator", () => { // Jump to "last week" mockClient.timestampToEvent.mockResolvedValue({ event_id: "$abc", - origin_server_ts: "0", + origin_server_ts: 0, }); const jumpToLastWeekButton = await screen.findByTestId("jump-to-date-last-week"); fireEvent.click(jumpToLastWeekButton);