Update react monorepo (#29765)
* Update react monorepo * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -40,9 +40,10 @@ describe("useProfileInfo", () => {
|
||||
result.current.search({ query });
|
||||
});
|
||||
|
||||
await waitFor(() => expect(result.current.ready).toBe(true));
|
||||
|
||||
expect(result.current.profile?.display_name).toBe(query);
|
||||
await waitFor(() => {
|
||||
expect(result.current.ready).toBe(true);
|
||||
expect(result.current.profile?.display_name).toBe(query);
|
||||
});
|
||||
});
|
||||
|
||||
it("should work with empty queries", async () => {
|
||||
|
||||
@@ -77,9 +77,8 @@ 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);
|
||||
});
|
||||
|
||||
it("should recover from a server exception", async () => {
|
||||
|
||||
@@ -45,9 +45,11 @@ describe("useUserDirectory", () => {
|
||||
act(() => {
|
||||
result.current.search({ limit: 1, query });
|
||||
});
|
||||
await waitFor(() => expect(result.current.ready).toBe(true));
|
||||
await waitFor(() => {
|
||||
expect(result.current.ready).toBe(true);
|
||||
expect(result.current.loading).toBe(false);
|
||||
});
|
||||
|
||||
expect(result.current.loading).toBe(false);
|
||||
expect(result.current.users[0].name).toBe(query);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user