mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-06 04:36:21 +02:00
Add null check to room directory test (#33353)
It had a waitFor but still flaked because it threw an exception accessing undefined.
This commit is contained in:
parent
c9c52a3526
commit
53d5986b16
@ -77,7 +77,7 @@ describe("usePublicRoomDirectory", () => {
|
||||
|
||||
await waitFor(() => {
|
||||
expect(result.current.ready).toBe(true);
|
||||
expect(result.current.publicRooms[0].name).toEqual(query);
|
||||
expect(result.current.publicRooms[0]?.name).toEqual(query);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user