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

feat(mobile): Write test for notification_domain_layer #66

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

duressaJemal
Copy link
Collaborator

@duressaJemal duressaJemal commented Jul 6, 2023

Description:
This pull request includes tests for the data layer of the notifications feature. Specifically, it includes the following test files:

  • notification_test.dart: This file tests the Notification entity to ensure that it is correctly constructed and its properties are set and retrieved correctly.
  • get_notification_test.dart: This file tests the GetNotification use case to ensure that it can successfully retrieve a list of notifications from the repository.
  • send_is_read_test.dart: This file tests the SendIsRead use case to ensure that it can correctly send the "is read" flag to the remote API.

The tests cover various scenarios, including:

  • Testing the construction and property access of the Notification entity.
  • Testing the GetNotification use case to ensure that it can correctly handle successful and failed requests to the repository.
  • Testing the SendIsRead use case to ensure that it can correctly handle successful and failed requests to the remote API.

Checklist:

  • Added tests for the Notification entity in notification_entity_test.dart
  • Added tests for the GetNotification use case in get_notification_test.dart
  • Added tests for the SendIsRead use case in send_is_read_test.dart
  • Ensured that all tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant