Bugfix: Print some html element as their own line #207
Annotations
5 errors and 1 warning
Run Test:
tests/Expressions/jsfmt.spec.js#L57
Error: Snapshot `Expressions > should handle object expressions 1` mismatched
- Expected
+ Received
@@ -8,8 +8,6 @@
}}
<h1
class="{{ {
('hero__title--' ~ (locale|lower)): locale in ['CN', 'JP', 'DE', 'RU']
- }|classes }}">
- Heading
- </h1>
+ }|classes }}">Heading</h1>
❯ tests/Expressions/jsfmt.spec.js:57:9
|
Run Test:
tests/Expressions/jsfmt.spec.js#L63
Error: Snapshot `Expressions > should handle operators 1` mismatched
- Expected
+ Received
@@ -64,13 +64,11 @@
{% if
element is instance of('craft\\elements\\Entry')
or element is instance of(
constant('Namespace\\Classname::CONSTANT_NAME')
) %}
- <h1>
- {{ entry.title }}
- </h1>
+ <h1>{{ entry.title }}</h1>
{% endif %}
{{ dump(test) }}
{{ range(2, 3)|sort|join(',') }}
{{ range(3)|sort|join(',') }}
❯ tests/Expressions/jsfmt.spec.js:63:9
|
Run Test:
tests/GenericTags/jsfmt.spec.js#L36
Error: Snapshot `Generic tags > should handle nav tag 1` mismatched
- Expected
+ Received
{% nav entry in entries %}
- <li>
- <a href="{{ entry.url }}">{{ entry.title }}</a>
- {% ifchildren %}
- <ul>
- {% children %}
- </ul>
- {% endifchildren %}
- </li>
+ <li><a href="{{ entry.url }}">{{ entry.title }}</a>
+ {% ifchildren %}
+ <ul>
+ {% children %}
+ </ul>
+ {% endifchildren %}</li>
{% endnav %}
❯ tests/GenericTags/jsfmt.spec.js:36:9
|
Run Test:
tests/IncludeEmbed/jsfmt.spec.js#L44
Error: Snapshot `Include embed > should handle mount 1` mismatched
- Expected
+ Received
@@ -22,26 +22,24 @@
}
%}
{% endif %}
</div>
- <li>
- <article>
- {% mount '@hotelsearch/accommodation-list/src/Slideout/index'
- as 'accommodation-slideout-' ~ accommodation.id.id with {
- key: 'accommodation-slideout-' ~ accommodation.id.id,
- itemId: accommodation.id.id,
- item: accommodation,
- isSearchedItem: isSearchedItem,
- bestPrice: accommodation.deals.bestPrice,
- insights: hasInsights ? insightsData.accommodation.id.id,
- clickedAltDealPartnerId: clickedAltDealPartnerId,
- entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id
- }
- %}
- </article>
- </li>
+ <li><article>
+ {% mount '@hotelsearch/accommodation-list/src/Slideout/index'
+ as 'accommodation-slideout-' ~ accommodation.id.id with {
+ key: 'accommodation-slideout-' ~ accommodation.id.id,
+ itemId: accommodation.id.id,
+ item: accommodation,
+ isSearchedItem: isSearchedItem,
+ bestPrice: accommodation.deals.bestPrice,
+ insights: hasInsights ? insightsData.accommodation.id.id,
+ clickedAltDealPartnerId: clickedAltDealPartnerId,
+ entirePlace: isEntirePlace ? entirePlaceData.accommodation.id.id
+ }
+ %}
+ </article></li>
<div class="popover__body">
{% mount ContentComponent as 'popover-component' ~ activeView with _context
%}
</div>
❯ tests/IncludeEmbed/jsfmt.spec.js:44:9
|
Run Test
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading