Background
Calendar methods support all-user and authenticated-user routes with optional startDate, days, and extended values. More path construction tests would make future refactors safer.
Proposed change
Add tests for representative methods such as calendars.allMovies, calendars.allShows, calendars.myMovies, and calendars.mySeasonPremieres.
Acceptance criteria
- Tests verify generated URLs for dated and non-dated calendar calls.
- Tests verify
extended is sent as a query parameter.
- Tests do not require live Trakt network access.
bun run verify passes.
Files likely involved
tests/endpoints.test.ts
src/endpoints/calendars.ts
Background
Calendar methods support all-user and authenticated-user routes with optional
startDate,days, andextendedvalues. More path construction tests would make future refactors safer.Proposed change
Add tests for representative methods such as
calendars.allMovies,calendars.allShows,calendars.myMovies, andcalendars.mySeasonPremieres.Acceptance criteria
extendedis sent as a query parameter.bun run verifypasses.Files likely involved
tests/endpoints.test.tssrc/endpoints/calendars.ts