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>
This commit is contained in:
parent
ee485ffcfd
commit
6a6deea7d8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue