Skip to content

Conversation

@toc-assistant
Copy link
Contributor

Problem

The testAddImageFileWithUnknownExtension test was failing because it used .webp as an "unknown" extension, but commit 1fd289c added WebP support to the MIME type detection.

Solution

  • Changed test to use .xyz which is genuinely unknown
  • Added explicit testAddImageFileWithWebpExtension test to verify WebP support

CI

This should fix the failing test in the previous PR.

- Add 'additions' property to TextComponent for link ranges
- Add WebP support to MultipartBuilder MIME detection
- Add 'explicitContent' property to Logo component
- Add ArticleThumbnail component for custom feed images
- Add ArticleTitle component with enhanced formatting
- Add test for TextComponent additions

These changes improve Apple News Format spec compliance.
The testAddImageFileWithUnknownExtension was using .webp which is now
a known extension after adding WebP support. Changed to .xyz which is
genuinely unknown.

Also added explicit test for WebP MIME type detection.
@tomgould tomgould merged commit 20f6e0c into tomgould:master Feb 7, 2026
5 checks passed
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.

2 participants