refactor!: removed roomNameExists method
Proposed changes (including videos or screenshots)
Removed roomNameExists method as it has been replaced by rooms.nameExists endpoint
Issue(s)
Steps to test or reproduce
Further comments
Looks like this PR is not ready to merge, because of the following issues:
- This PR is missing the 'stat: QA assured' label
Please fix the issues and try again
If you have any trouble, please check the PR guidelines
⚠️ No Changeset found
Latest commit: f423b640814f4616ec667b9eab68da3b3f49862d
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 59.39%. Comparing base (
8c447cf) to head (f423b64). Report is 5 commits behind head on release-7.0.0.
Additional details and impacted files
@@ Coverage Diff @@
## release-7.0.0 #32484 +/- ##
==============================================
Coverage 59.39% 59.39%
==============================================
Files 2541 2541
Lines 63175 63175
Branches 14220 14220
==============================================
Hits 37525 37525
Misses 22935 22935
Partials 2715 2715
| Flag | Coverage Δ | |
|---|---|---|
| unit | 76.02% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Can we take a look at this test case? I think there's something weird since it's expecting an error when no room is found...
https://github.com/RocketChat/Rocket.Chat/blob/develop/apps/meteor/tests/end-to-end/api/09-rooms.js#L425
I looked at it, the test was for an invalid roomId which should not be there as we dont accept a roomId for this endpoint. So I changed this test to check for invalid params which makes the test more clear. Also, I added a test to check if false is returned if roomName is not found.