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
As a developer, it would be nice if there were some bad weather test cases for the methods of the API client. As it stands, the test suite in src/__tests__/index.test.ts only test for when each method call succeeds and fetches data, however it would be good practice and beneficial if negative cases were tested.
Examples of this can be when the request to uvic.ca fails, when the parsed data is an unexpected form, etc.
These tests should be implemented in the existing test suite src/__tests__/index.test.ts where the existing good weather cases are.
The text was updated successfully, but these errors were encountered:
As a developer, it would be nice if there were some bad weather test cases for the methods of the API client. As it stands, the test suite in
src/__tests__/index.test.ts
only test for when each method call succeeds and fetches data, however it would be good practice and beneficial if negative cases were tested.Examples of this can be when the request to uvic.ca fails, when the parsed data is an unexpected form, etc.
These tests should be implemented in the existing test suite
src/__tests__/index.test.ts
where the existing good weather cases are.The text was updated successfully, but these errors were encountered: