Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test that doesn't make sense in usePublicRoomDirectory-test.tsx #29335

Merged
merged 3 commits into from
Feb 22, 2025

Conversation

langleyd
Copy link
Member

@langleyd langleyd commented Feb 21, 2025

fixes #28806

This test no longer makes sense.

It looks like it got mangled here.

It seems the intent of the test was to check empty queries but has a query > 0 probably from a copy/paste typo.

usePublicRoomDirectory doesn't set a filter for a query that is falsy.

I've fixed up the test to make sense, returning results(no filter) for ""

@langleyd langleyd added this pull request to the merge queue Feb 22, 2025
Merged via the queue into develop with commit 27c0e97 Feb 22, 2025
57 checks passed
@langleyd langleyd deleted the langleyd/remove_odd_test branch February 22, 2025 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky jest test: test/unit-tests/hooks/usePublicRoomDirectory-test.tsx
2 participants