Skip to content

Commit

Permalink
test: update existing snapshot
Browse files Browse the repository at this point in the history
By default, option `bracketSameLine` is set to `false` and behave
differently before fixed in this patch set. Thus we need to update
existing snapshot to adhere with this changes.
  • Loading branch information
zackad committed Dec 16, 2024
1 parent a89c3af commit 8293679
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion tests/ControlStructures/__snapshots__/forInclude.snap.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{% for foo in range(1, category) %}
<span
key="{{ foo }}"
class="qtp-item__star icon-ic icon-icn_star--white {{ foo }}">
class="qtp-item__star icon-ic icon-icn_star--white {{ foo }}"
>
{% include './Star.twig' only %}
</span>
{% endfor %}
3 changes: 2 additions & 1 deletion tests/ControlStructures/__snapshots__/if.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
(css.logoWider): useWiderItems
}|classes }}"
srcABC="{{ partner.logoUrl }}"
alt="{{ partner.name }}" />
alt="{{ partner.name }}"
/>
{%- elseif partnerName %}
<b class="{{ css.name }}">{{ partnerName }}</b>
{% elseif partnerImg -%}
Expand Down
3 changes: 2 additions & 1 deletion tests/Element/__snapshots__/attributes.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
ref: intersectionObserver|default,
class: 'hotel-item item-order__list-item js_co_item',
'data-co_alt_htl': isAlternative ? '1'
}|attrs }}>
}|attrs }}
>
Test
</fantasy>

Expand Down
3 changes: 2 additions & 1 deletion tests/Element/__snapshots__/manyAttributes.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
attr5="five"
attr6="six"
attr7="seven"
attr8="eight">
attr8="eight"
>
Text
</span>
3 changes: 2 additions & 1 deletion tests/Element/__snapshots__/selfClosing.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
attr5="five"
attr6="six"
attr7="seven"
attr8="eight" />
attr8="eight"
/>

<input type="text" name="user" />
<input type="text" name="password" />
Expand Down
3 changes: 2 additions & 1 deletion tests/Expressions/__snapshots__/mappingExpression.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@
theme
})
})
}}></div>
}}
></div>
3 changes: 2 additions & 1 deletion tests/Expressions/__snapshots__/objectExpression.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<h1
class="{{ {
('hero__title--' ~ (locale|lower)): locale in ['CN', 'JP', 'DE', 'RU']
}|classes }}">
}|classes }}"
>
Heading
</h1>
3 changes: 2 additions & 1 deletion tests/Failing/__snapshots__/controversial.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<section
class="{{ {
base: css.prices
} | classes }}"></section>
} | classes }}"
></section>

<!-- This is what happens if we reduce indentation depth here:
"as" and object keys at same indentation level
Expand Down
3 changes: 2 additions & 1 deletion tests/Failing/__snapshots__/failing.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
class="rat-chart__bar-content rat-color--{{ valueIndex }}"
{{ {
style: width
} | attrs }}>
} | attrs }}
>

</span>
</span>
Expand Down
3 changes: 2 additions & 1 deletion tests/Statements/__snapshots__/macro.snap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
type="{{ type }}"
name="{{ name }}"
value="{{ value|e }}"
size="{{ size }}" />
size="{{ size }}"
/>
{% endmacro %}

{%- macro wrapped_input(name, value, type, size) %}
Expand Down
3 changes: 2 additions & 1 deletion tests/smoke-test.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>
Document
Expand Down

0 comments on commit 8293679

Please sign in to comment.