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

[Frontend] Badge Functionality Unit Tests #369

Closed
berkaydoner opened this issue Jan 4, 2022 · 3 comments
Closed

[Frontend] Badge Functionality Unit Tests #369

berkaydoner opened this issue Jan 4, 2022 · 3 comments

Comments

@berkaydoner
Copy link
Collaborator

I have implemented the badge functionality with various pages. All the badge information is kept in the backend; therefore, I think it would be a good idea to check the controller methods for this functionality using mock response. I am planning to check if the responses got from the backend are formatted correctly before used and if the requests sent to the backend are in correct format with method type and body.

@berkaydoner
Copy link
Collaborator Author

I have added several unit tests for the badge functionality. As I planned, I checked if the mock responses are formatted correctly to be used in Badge, BadgeList and other components. I checked if individual badge information, badge list information and related events information in the profile are formatted correctly. I also checked if the request done when sending a badge is in the correct format with correct body and POST method type.

@berkaydoner
Copy link
Collaborator Author

All unit tests pass on GitHub actions, pull request is #352.

@berkaydoner
Copy link
Collaborator Author

Pull request is merged and closed, closing the issue.

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

No branches or pull requests

1 participant