Skip to content

Conversation

@LeeGordon83
Copy link
Contributor

added coverage flag

- Add proxyFetch tests for both proxy and non-proxy scenarios (lines 13, 17)
- Add test for empty items in readings response (line 92)
- Add test for hourAgoReading with no value (line 112)
- Add tests for stageScale edge cases (lines 121, 123)
- Add test for missing dateTime fallback (line 129)
- Export proxyFetch function for testability
- Total 38 unit tests for flood-service.js
- Coverage: 98.85% statements, 94.5% branches
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
83.3% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube Cloud

@LeeGordon83 LeeGordon83 merged commit b252405 into main Jan 19, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants