Skip to content

Add endpoint path tests for calendar methods #3

Description

@TDanks2000

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions