You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: