Skip to content

Add test coverage for insertLink fallback strategies #5

Description

@eikiyo

Internal-link insertion has several documented strategies (marker-based, first-paragraph fallback, markerMissing flag). Expand the vitest suite in the API package to cover the fallback branches and edge cases: empty content, no paragraph break, marker present vs absent.

Acceptance criteria

  • New tests under the API package test dir; all green.
  • Test-only; no product behavior changed.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions