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 tests for notification data layer #65

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

Conversation

duressaJemal
Copy link
Collaborator

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

  • notification_remote_datasource_test.dart
  • notification_model_test.dart
  • notification_repository_impl_test.dart

The tests cover various scenarios, including:

  • Testing the NotificationRemoteDataSource class to ensure that it can successfully fetch notifications from a remote API.
  • Testing the NotificationModel class to ensure that it can correctly parse JSON data into Notification objects.
  • Testing the NotificationRepositoryImpl class to ensure that it can correctly handle network connectivity issues and server failures when fetching notifications, and can correctly send the "is read" flag to the remote API.

Checklist

  • Added tests for the NotificationRemoteDataSource class
  • Added tests for the NotificationModel class
  • Added tests for the NotificationRepositoryImpl class
  • 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