You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: routes/api/v1/data/index.dart
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -602,7 +602,7 @@ Model: `country`
602
602
603
603
21. Filter by text query `q` for countries (name and iso_code):
604
604
- 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.
606
606
607
607
22. Invalid parameter for countries (e.g., `categories`):
0 commit comments