Skip to content

Commit d429b17

Browse files
committed
docs(api): update stale comment in data route test cases
Corrects an outdated comment in the test case documentation within `routes/api/v1/data/index.dart`. The comment incorrectly stated that searching for a country via the `q` parameter only checked the name field. The implementation correctly searches both the `name` and `isoCode` fields. This change updates the comment to accurately reflect the code's behavior.
1 parent 92e75fe commit d429b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api/v1/data/index.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ Model: `country`
602602
603603
21. Filter by text query `q` for countries (name and iso_code):
604604
- URL: `/api/v1/data?model=country&q=US`
605-
- Expected: Country with name containing "US". (Note: This test's expectation might need adjustment if no country name contains "US" but its isoCode is "US". The current `q` logic for country only searches name).
605+
- Expected: Countries where "US" appears in the name OR the isoCode.
606606
607607
22. Invalid parameter for countries (e.g., `categories`):
608608
- URL: `/api/v1/data?model=country&topics=topicId1`

0 commit comments

Comments
 (0)