Skip to content

Add dedicated unit tests for sanitizeNextPath #185

Description

@ryota-murakami

Summary

sanitizeNextPath lacks dedicated unit tests (especially the null-input branch).

Source

P2 follow-up from /ship adversarial review of PR #176 (silent GitHub token refresh).

Details

Currently exercised only indirectly via the refresh-route tests. Direct coverage missing.

Acceptance

  • Test file src/tests/unit/lib/utils/sanitize-next.test.ts created
  • Coverage: null input, relative paths, absolute paths, javascript: URLs, protocol-relative URLs, double slashes, fallback default

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

    Labels

    P2-mediumPlan for this monthtestingTest coverage, reliability, flakiness

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions