john-okeefe
6a8d2e0e3b
test: fix autocomplete test to match API response structure
...
- Update test to unmarshal response object before extracting results array
- API returns {"results": [...], "total": N}, not a bare array
- Fixes "cannot unmarshal object into Go value of type []map" error
- Test now correctly handles the structured autocomplete response
The handleFieldValuesSearch endpoint returns a structured response
with metadata (results array + total count), not a bare array.
This aligns the test with the actual API response format.
2026-03-25 20:59:26 -04:00
..
2026-02-22 01:57:22 -05:00
2026-01-28 16:13:50 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 01:57:22 -05:00
2026-01-31 11:45:52 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 11:21:00 -05:00
2026-02-13 21:50:03 -05:00
2026-02-22 11:21:00 -05:00
2026-02-01 14:11:17 -05:00
2026-03-21 22:37:19 -04:00
2026-03-24 20:55:37 -04:00
2026-03-24 20:55:37 -04:00
2026-03-24 20:55:37 -04:00
2026-02-22 01:57:22 -05:00
2026-01-30 20:55:20 -05:00
2026-03-24 20:55:37 -04:00
2026-03-06 14:15:04 -05:00
2026-01-28 16:13:50 -05:00
2026-02-01 13:21:32 -05:00
2026-02-22 01:57:22 -05:00
2026-03-06 01:52:19 -05:00
2026-03-06 14:00:56 -05:00
2026-03-24 20:46:16 -04:00
2026-02-22 11:21:00 -05:00
2026-02-22 11:21:00 -05:00
2026-02-15 00:29:01 -05:00
2026-03-24 20:55:37 -04:00
2026-02-25 11:30:47 -05:00
2026-03-06 01:52:19 -05:00
2026-03-24 21:06:45 -04:00
2026-03-06 14:00:56 -05:00
2026-02-14 00:12:28 -05:00
2026-01-28 12:50:42 -05:00
2026-02-22 11:21:00 -05:00
2026-02-13 20:04:47 -05:00
2026-02-15 00:29:20 -05:00
2026-02-28 14:09:06 -05:00
2026-03-25 20:59:26 -04:00
2026-03-06 14:15:04 -05:00
2026-03-24 20:46:07 -04:00
2026-01-28 12:50:42 -05:00
2026-02-22 11:43:42 -05:00
2026-03-06 15:03:21 -05:00
2026-03-24 21:15:40 -04:00