Skip to content

test: cover insertLink fallback branches#6

Open
Kkkakania wants to merge 1 commit into
eikiyo:mainfrom
Kkkakania:test/insertlink-fallbacks
Open

test: cover insertLink fallback branches#6
Kkkakania wants to merge 1 commit into
eikiyo:mainfrom
Kkkakania:test/insertlink-fallbacks

Conversation

@Kkkakania

Copy link
Copy Markdown

Summary

  • add API package tests for insertLink empty-content fallback
  • cover wrapping content without paragraph tags
  • cover marker absent vs unrelated marker present cases
  • keep this test-only with no product behavior changes

Closes #5

Tests

  • pnpm --filter @recto/api exec vitest run test/insert-link-fallbacks.test.ts
  • pnpm --filter @recto/api test
  • pnpm --filter @recto/api typecheck
  • pnpm --filter @recto/api lint
  • git diff --check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for insertLink fallback strategies

1 participant