Create useSMHIForecast.test.js #926
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!926
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#47-Testing-SMHI"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added automated tests for the SMHI forecast hook (useSMHIForecast). The tests verify that the hook:
The tests use mocked dependencies instead of real SMHI API calls to keep the test suite fast and reliable.
All tests are expected to pass.
Review on #926
Whats done
Reviewed the code and ran the tests
Tested on ubuntu
Inspected following files
Conclusion
Since all tests pass and it correctly tests the hook (returned values), this is ready to be merged.