Skip to content

added five unit tests for getOsmCalevents() - #13190

Open
hemaksh2007jain-bit wants to merge 2 commits into
openstreetmap:developfrom
hemaksh2007jain-bit:issue-13128-osmcal-tests
Open

hemaksh2007jain-bit wants to merge 2 commits into
openstreetmap:developfrom
hemaksh2007jain-bit:issue-13128-osmcal-tests

Conversation

@hemaksh2007jain-bit

Copy link
Copy Markdown
Contributor

AI assistance used for breaking down the typescript code and furnishing the draft code .

changes made :
-Added a new test file test/spec/services/osmcal.js
-Added five unit tests for getOsmCalEvents() covering cancelled event filtering, API query parameters, caching, JSON parsing failures, and network request failures.

human verification :
I reviewed the three files = modules/services/osmcal.ts ,
test/spec/services/nominatim.js ,
test/spec/services/kartaview.js
and identified the five behaviours that need test coverage .

Reviewed and verified the drafted test code against the service implementation.

Testing :
All 5 OsmCal tests passing.
Service test suite: 132 passed.
ESLint passing.

Related issue: #13128

@matkoniecz matkoniecz added the ai-assisted This PR makes extensive use of outsourced intelligence label Nov 10, 2026
Comment thread test/spec/services/osmcal.js Resolved
@matkoniecz
matkoniecz marked this pull request as draft November 10, 2026 18:04
@matkoniecz

Copy link
Copy Markdown
Collaborator

@hemaksh2007jain-bit please - mark it as ready for review once you confirmed that it is ready

This branch was successfully deployed

1 active deployment
pr-preview-13190 — b3d76401 Deployed Nov 10, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted This PR makes extensive use of outsourced intelligence

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants