john-okeefe
66e0b61200
test(collections): replace broken unit tests with integration tests
...
Removed unit tests that couldn't work without a database (nil db would
panic). Added comprehensive integration tests for the PreviewCollection
endpoint covering:
- Authentication (no auth, valid auth)
- Input validation (missing/invalid library ID, invalid JSON)
- Manual book selection
- Rule-based filtering
- Limit parameter handling
- Duplicate and invalid book ID handling
2026-02-20 17:04:15 -05:00
..
2026-02-14 00:12:28 -05:00
2026-01-28 16:13:50 -05:00
2026-02-14 00:12:28 -05:00
2026-02-14 00:12:28 -05:00
2026-02-20 17:04:15 -05:00
2026-01-31 11:45:52 -05:00
2026-02-13 21:50:03 -05:00
2026-02-20 10:20:57 -05:00
2026-02-10 13:24:08 -05:00
2026-02-13 21:50:03 -05:00
2026-02-14 00:12:28 -05:00
2026-02-01 14:11:17 -05:00
2026-02-13 20:04:47 -05:00
2026-02-10 13:03:32 -05:00
2026-02-14 00:12:28 -05:00
2026-01-30 20:55:20 -05:00
2026-01-29 09:23:34 -05:00
2026-01-28 16:13:50 -05:00
2026-02-01 13:21:32 -05:00
2026-02-14 00:12:28 -05:00
2026-02-11 18:16:42 -05:00
2026-01-29 09:23:34 -05:00
2026-02-14 00:12:28 -05:00
2026-02-14 21:37:45 -05:00
2026-02-15 00:28:52 -05:00
2026-02-15 00:29:01 -05:00
2026-01-30 13:52:11 -05:00
2026-02-16 16:50:31 -05:00
2026-02-14 00:12:28 -05:00
2026-01-28 12:50:42 -05:00
2026-02-16 16:50:31 -05:00
2026-02-13 20:04:47 -05:00
2026-02-15 00:29:20 -05:00
2026-02-15 00:29:29 -05:00
2026-02-13 20:04:47 -05:00
2026-02-19 21:06:23 -05:00
2026-01-28 12:50:42 -05:00
2026-02-13 20:04:47 -05:00
2026-02-14 00:12:28 -05:00