Fix react function refs returning things
This is incompatible with React 19 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
c299d2a0d1
commit
983db465c3
7 changed files with 47 additions and 25 deletions
|
@ -65,7 +65,9 @@ describe("FilePanel", () => {
|
|||
roomId={room.roomId}
|
||||
onClose={jest.fn()}
|
||||
resizeNotifier={new ResizeNotifier()}
|
||||
ref={(ref) => (filePanel = ref)}
|
||||
ref={(ref) => {
|
||||
filePanel = ref;
|
||||
}}
|
||||
/>,
|
||||
);
|
||||
await screen.findByText("No files visible in this room");
|
||||
|
|
|
@ -204,7 +204,9 @@ describe("TimelinePanel", () => {
|
|||
timelineSet={timelineSet}
|
||||
manageReadMarkers={true}
|
||||
manageReadReceipts={true}
|
||||
ref={(ref) => (timelinePanel = ref)}
|
||||
ref={(ref) => {
|
||||
timelinePanel = ref;
|
||||
}}
|
||||
/>,
|
||||
);
|
||||
await flushPromises();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue