Create useSMHIForecast.test.js #926
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
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.