Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 18, 2024
1 parent 31f61bd commit 2a6c986
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extra/html-extra/Tests/Fixtures/html_classes.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
{{ html_classes('a', {'b': true, 'c': false}, 'd', false ? 'e', true ? 'f', '0') }}
{% set class_a = 'a' %}
{% set class_b = 'b' %}
{{ html_classes(class_a, {(class_b): true})}}
{%- set class_c -%}
c
{%- endset -%}
{{ html_classes(class_a, { (class_b): true }) }}
{{ html_classes(class_a, { (class_c): true }) }}
--DATA--
return []
--EXPECT--
a b d f 0
a b
a c

0 comments on commit 2a6c986

Please sign in to comment.