From f29cbd62cc177fe6b52de8737590850b3bd60773 Mon Sep 17 00:00:00 2001 From: Ivan Moroz Date: Fri, 29 May 2026 14:15:31 +0300 Subject: [PATCH] CONV-051: Test JPG target capabilities --- .../Converters/ConverterRegistryTargetsTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Unit/Converters/ConverterRegistryTargetsTest.php b/tests/Unit/Converters/ConverterRegistryTargetsTest.php index 60f2e3f..c2bddc5 100644 --- a/tests/Unit/Converters/ConverterRegistryTargetsTest.php +++ b/tests/Unit/Converters/ConverterRegistryTargetsTest.php @@ -14,3 +14,16 @@ expect($targets)->toContain('pdf'); expect($targets)->not->toContain('mp3'); })->skip('CONV-056 wires the registry binding; this test will become live then.'); + +it('lists jpg target capabilities', function () { + $registry = app(ConverterRegistry::class); + + $targets = collect($registry->targetsFor('jpg')) + ->map(fn ($target) => $target->format) + ->all(); + + expect($targets)->toContain('png'); + expect($targets)->toContain('webp'); + expect($targets)->toContain('pdf'); + expect($targets)->not->toContain('mp3'); +})->skip('CONV-056 wires the registry binding; this test will become live then.');