docs: lit-divi-catalog shows both result shapes (trial)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-26 19:23:47 +02:00
co-authored by Claude Opus 5.5
parent db40f4efa7
commit 0531a5ffb1
3 changed files with 19 additions and 1 deletions
@@ -21,6 +21,16 @@ final class DiviCatalogAbilityTest extends TestCase
return new DiviCatalogAbility($modules);
}
/** Trial feedback: both result shapes as one-line examples. */
public function testDescriptionShowsBothResultShapes(): void
{
$description = $this->ability()->description();
self::assertStringContainsString('{"modules": [{"name": "divi/heading"', $description);
self::assertStringContainsString('{"module": {"name": "divi/heading"', $description);
self::assertStringContainsString('"notes": [', $description);
}
public function testListsModulesWithShortformFlag(): void
{
$result = $this->ability()->execute([]);