Skip to content

Add unit tests for FindByViewModel. #14145

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

Closed
wants to merge 2 commits into from

Conversation

Sagar0-0
Copy link
Contributor

Added 100% test coverage with some refactoring.

@Sagar0-0 Sagar0-0 force-pushed the sagar/test-findbyvm branch from d9f4821 to ba29fe1 Compare May 14, 2025 17:45
@@ -195,7 +193,7 @@ class FindByActivity : PassphraseRequiredActivity() {
val cleansed = state.userEntry.removePrefix(state.selectedCountry.countryCode.toString())
E164Util.formatAsE164WithCountryCodeForDisplay(state.selectedCountry.countryCode.toString(), cleansed)
}
stringResource(id = R.string.FindByActivity__s_is_not_a_valid_phone_number, state.userEntry)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to keep this as the user provided input instead of the formatted input so things match what the user sees/entered.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we can also remove the formattedNumber.

Copy link

stale bot commented Jul 20, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 20, 2025
Copy link

stale bot commented Jul 27, 2025

This issue has been closed due to inactivity.

@stale stale bot closed this Jul 27, 2025
@gabefair
Copy link

gabefair commented Aug 2, 2025

Should this be reopened?

cody-signal pushed a commit that referenced this pull request Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants