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

Add Unit Tests for AboutScreen #296

Open
2 tasks done
angrezichatterbox opened this issue Jan 15, 2025 · 2 comments
Open
2 tasks done

Add Unit Tests for AboutScreen #296

angrezichatterbox opened this issue Jan 15, 2025 · 2 comments
Assignees
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@angrezichatterbox
Copy link
Member

Terms

Description

Add unit tests to verify the functionality of the utility functions and logic used in the AboutScreen.

The following things has to be done in this issue:

  1. Test Utility Functions:

    • Validate AboutUtil.getCommunityList with mock context and click handlers.
    • Test AboutUtil.getFeedbackAndSupportList for correct item generation.
    • Ensure AboutUtil.getLegalListItems produces the expected legal items.
  2. Test Click Handlers:

    • Mock context and validate functions such as:
      • AboutUtil.onShareScribeClick
      • AboutUtil.onRateScribeClick
      • AboutUtil.onMailClick
  3. Test Hint Reset Logic:

    • Verify HintUtils.resetHints is invoked and state updates as expected.

Contribution

Happy to help anyone solve this issue or take this up myself at some point :)

@angrezichatterbox angrezichatterbox added feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 15, 2025
@Saifuddin53
Copy link
Contributor

Can i work on this @angrezichatterbox ?

@angrezichatterbox
Copy link
Member Author

Assigned :)

Thanks for taking up the issue. In case of queries feel free to ask it here.

@angrezichatterbox angrezichatterbox moved this from Todo to In Progress in Scribe Board Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: In Progress
Development

No branches or pull requests

2 participants