Skip to content

Commit

Permalink
Add test for slots with attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlay committed Jan 30, 2022
1 parent efe8d5d commit a95acef
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/corpus/slots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,35 @@ Named Slots
(component_name
(function)))))

================================================================================
Named Slots with Attributes
================================================================================

<.modal>
<:header key={@value}>
</:header>
</.modal>

--------------------------------------------------------------------------------

(fragment
(component
(start_component
(component_name
(function)))
(slot
(start_slot
(slot_name)
(attribute
(attribute_name)
(expression
(expression_value))))
(end_slot
(slot_name)))
(end_component
(component_name
(function)))))

================================================================================
Slots must be a child of a Component
================================================================================
Expand Down

0 comments on commit a95acef

Please sign in to comment.