Skip to content

test(hooks): add additional test coverage for read-image-resizer hook#4523

Open
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:test/read-image-resizer-hook-coverage
Open

test(hooks): add additional test coverage for read-image-resizer hook#4523
Hungdoan565 wants to merge 2 commits into
code-yeongyu:devfrom
Hungdoan565:test/read-image-resizer-hook-coverage

Conversation

@Hungdoan565

@Hungdoan565 Hungdoan565 commented May 26, 2026

Copy link
Copy Markdown
Contributor

Add 5 additional edge case tests to the existing
ead-image-resizer/hook.test.ts:

  • Non-string output handling
  • Attachment without filename (fallback naming)
  • Error handling during image processing
  • Multiple attachments with mixed statuses

Summary by cubic

Add five edge‑case tests for the read-image-resizer hook to improve reliability and coverage. Covers fallback filenames, skipping non‑string output, MIME type case normalization, and mixed outcomes across multiple attachments; also syncs bun.lock to bump oh-my-opencode platform binaries to 4.5.1.

Written for commit a525b46. Summary will update on new commits. Review in cubic

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.

1 participant