john-okeefe
80d423663b
test: fix type assertion in autocomplete test
...
- Change type assertion from []map[string]interface{} to []interface{}
- JSON unmarshal into interface{} creates []interface{}, not typed slices
- Fixes panic: interface conversion error in test
The response["results"] field needs to be asserted as []interface{}
when the parent is unmarshaled into map[string]interface{}.
This matches Go's JSON unmarshaling behavior for interface{} types.
2026-03-25 21:01:21 -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 21:01:21 -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