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] Unit tests for map functionalities #239

Closed
berkaydoner opened this issue Dec 13, 2021 · 2 comments
Closed

[Frontend] Unit tests for map functionalities #239

berkaydoner opened this issue Dec 13, 2021 · 2 comments

Comments

@berkaydoner
Copy link
Collaborator

We have to create unit tests for maps used in create event page/search page. Since these maps are mostly focused on view and their structure is defined by the library, I am planning to test the search bar I implemented for location search. This search bar is connected to an API; however, I can mock the response from the API and check if the response is formatted correctly before it is used in the search bar.

@berkaydoner
Copy link
Collaborator Author

Similar to the comments/answers, I used Jest library to test my implementation. I checked if the data fetched from the API is formatted correctly using mock JSON data. Pull request is #245.

@berkaydoner
Copy link
Collaborator Author

Pull request for the unit tests of this functionality is merged and closed.

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