Skip to content

Rename parser/AST from 'melody' into 'twig' #92

Rename parser/AST from 'melody' into 'twig'

Rename parser/AST from 'melody' into 'twig' #92

Triggered via pull request July 27, 2024 05:14
Status Failure
Total duration 30s
Artifacts

ci.yaml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

18 errors
tests/Comments/jsfmt.spec.js > htmlComments.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `htmlComments.melody.twig - twig-verify > htmlComments.melody.twig 1` mismatched - Expected + Received @@ -8,11 +8,11 @@ <!-- I am a third comment --> A third paragraph - <!-- This is the story of a little lamb + <!-- This is the story of a little lamb that gets lost in a dark forest and struggles to find home --> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <!-- I am a comment --> This is a paragraph @@ -23,8 +23,8 @@ <!-- I am a third comment --> A third paragraph - <!-- This is the story of a little lamb + <!-- This is the story of a little lamb that gets lost in a dark forest and struggles to find home --> ❯ tests_config/run_spec.js:42:19
tests/ControlStructures/jsfmt.spec.js > if.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `if.melody.twig - twig-verify > if.melody.twig 1` mismatched - Expected + Received @@ -16,11 +16,11 @@ {% elseif partnerImg -%} <b class="{{ css.image }}">{{ partnerImg }}</b> {%- endif -%} <!-- Don't break --> - {% if isLeftToRight %}Hund{% endif %} + {% if isLeftToRight %}Hund{% endif %} {% if isRTL %}{{ '&#8206;' | raw }}{% endif %} <!-- Do break --> {% if unitAfter | length > 0 and not withoutDisplayPattern %}<span key="unit-after" class="unit unit--after">{{ unitAfter }}</span>{% endif %} ❯ tests_config/run_spec.js:42:19
tests/Element/jsfmt.spec.js > whitespace.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `whitespace.melody.twig - twig-verify > whitespace.melody.twig 1` mismatched - Expected + Received @@ -7,14 +7,14 @@ <div> Gallia est omnis divisa in {{ "partes tres" }}, quarum unam incolunt Belgae, aliam Aquitani, tertiam, qui ipsorum lingua Celtae, nostra Galli appellantur. Gallien in seiner Gesamtheit zerfällt in <span>drei Teile</span>. Den einen bewohnen die Belger, einen anderen die Aquitaner und den dritten die, die sich selbst Kelten nennen, in unserer Sprache aber Gallier heißen. - All Gaul is divided into three - parts, one of which the Belgae inhabit, + All Gaul is divided into three + parts, one of which the Belgae inhabit, the Aquitani another, those who in their - own language are called Celts, + own language are called Celts, in our Gauls, the third. </div> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <span class="price">{{ price }} {{ currencySymbol }}</span> ❯ tests_config/run_spec.js:42:19
tests/Expressions/jsfmt.spec.js > binaryExpressions.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `binaryExpressions.melody.twig - twig-verify > binaryExpressions.melody.twig 1` mismatched - Expected + Received @@ -9,11 +9,11 @@ '$address': '<span itemprop="streetAddress">' ~ address_attributes.address ~ '</span>', } %} {% set renderLoadingBar = showNewLoadingAnimation and isCTestActive('WEB-47697') and showLoadingBar and (isABCD or isLoading) %} - {% set result = (conditionAlpha or conditionBeta) + {% set result = (conditionAlpha or conditionBeta) and (conditionGamma or conditionDelta) %} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {% set highlightValueForMoney = isFeatureEnabled('vFMV5') or isCTestActive('WEB-48935') ❯ tests_config/run_spec.js:42:19
tests/Failing/jsfmt.spec.js > failing.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `failing.melody.twig - twig-verify > failing.melody.twig 1` mismatched - Expected + Received @@ -8,25 +8,25 @@ }} </option> #} {% icon 'general/arrow-36x36' with { - classList: { - base: "#{css['arrowIcon#{action}']} icon-rtl", + classList: { + base: "#{css['arrowIcon#{action}']} icon-rtl", 'icon-flip': flipIcon ?? false } | classes - } + } %} {# "only" dropped, comment dropped #} {% embed '@hotelsearch/common/tooltip/tooltip.melody.twig' with { position: 'bottomTrailing', id: 'most-popular-badge', classList: tooltipOpen ? 'show-tooltip', isAriaHidden: not tooltipOpen ?? false } only %} - {# Necessary block to inject html into the tooltip #} + {# Necessary block to inject html into the tooltip #} {% block text %} <p>Hey></p> {% endblock %} {% endembed %} @@ -51,11 +51,11 @@ ' }} </textarea> {# Before the closing -->, whitespace keeps being added #} - <!-- + <!-- This is a comment --> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {# IF tag in element not allowed <option {% if not purchasable.isAvailable %}disabled{% endif %}> @@ -119,8 +119,8 @@ } %} ' }} </textarea> {# Before the closing -->, whitespace keeps being added #} - <!-- + <!-- This is a comment --> ❯ tests_config/run_spec.js:42:19
tests/IncludeEmbed/jsfmt.spec.js > mount.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `mount.melody.twig - twig-verify > mount.melody.twig 1` mismatched - Expected + Received @@ -21,11 +21,11 @@ <li> <article> {% mount "@hotelsearch/accommodation-list/src/Slideout/index" as "accommodation-slideout-" ~ accommodation.id.id with { - "key": "accommodation-slideout-" ~ accommodation.id.id, + "key": "accommodation-slideout-" ~ accommodation.id.id, "itemId": accommodation.id.id, "item": accommodation, "isSearchedItem": isSearchedItem, "bestPrice": accommodation.deals.bestPrice, "insights": hasInsights ? insightsData.accommodation.id.id, @@ -40,11 +40,11 @@ <div class="popover__body"> {% mount ContentComponent as 'popover-component' ~ activeView with _context %} </div> <div id="js_homepage_tabs" class="tabs no-select" key="SEOTabs"> - {% mount Tabs from '@trivago/components' as seotabs with { + {% mount Tabs from '@trivago/components' as seotabs with { tabs: tabs, classList: 'tabs--homepage', } %} </div> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ❯ tests_config/run_spec.js:42:19
tests/Statements/jsfmt.spec.js > filter.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `filter.melody.twig - twig-verify > filter.melody.twig 1` mismatched - Expected + Received @@ -9,11 +9,11 @@ {%- filter lower|escape('html') | upper | escape('markdown') | lower | upper | escape('markdown') %} <strong>SOME TEXT</strong> <p>The cat is taking a nap in the sunshine.</p> - + {% endfilter -%} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {% filter upper %} This text becomes uppercase {% endfilter %} ❯ tests_config/run_spec.js:42:19
tests/Whitespace/jsfmt.spec.js > element.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `element.melody.twig - twig-verify > element.melody.twig 1` mismatched - Expected + Received @@ -1,11 +1,11 @@ <div> <img src="person.jpg"> </div> <p> - This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text + This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text </p> <div class="striped-rows"> <!-- Pregunta 1 --> {% include 'pages/formularios/sub/pregunta-simple.html' %} ❯ tests_config/run_spec.js:42:19
Test (20)
Process completed with exit code 1.
tests/Comments/jsfmt.spec.js > htmlComments.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `htmlComments.melody.twig - twig-verify > htmlComments.melody.twig 1` mismatched - Expected + Received @@ -8,11 +8,11 @@ <!-- I am a third comment --> A third paragraph - <!-- This is the story of a little lamb + <!-- This is the story of a little lamb that gets lost in a dark forest and struggles to find home --> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <!-- I am a comment --> This is a paragraph @@ -23,8 +23,8 @@ <!-- I am a third comment --> A third paragraph - <!-- This is the story of a little lamb + <!-- This is the story of a little lamb that gets lost in a dark forest and struggles to find home --> ❯ tests_config/run_spec.js:42:19
tests/ControlStructures/jsfmt.spec.js > if.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `if.melody.twig - twig-verify > if.melody.twig 1` mismatched - Expected + Received @@ -16,11 +16,11 @@ {% elseif partnerImg -%} <b class="{{ css.image }}">{{ partnerImg }}</b> {%- endif -%} <!-- Don't break --> - {% if isLeftToRight %}Hund{% endif %} + {% if isLeftToRight %}Hund{% endif %} {% if isRTL %}{{ '&#8206;' | raw }}{% endif %} <!-- Do break --> {% if unitAfter | length > 0 and not withoutDisplayPattern %}<span key="unit-after" class="unit unit--after">{{ unitAfter }}</span>{% endif %} ❯ tests_config/run_spec.js:42:19
tests/Element/jsfmt.spec.js > whitespace.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `whitespace.melody.twig - twig-verify > whitespace.melody.twig 1` mismatched - Expected + Received @@ -7,14 +7,14 @@ <div> Gallia est omnis divisa in {{ "partes tres" }}, quarum unam incolunt Belgae, aliam Aquitani, tertiam, qui ipsorum lingua Celtae, nostra Galli appellantur. Gallien in seiner Gesamtheit zerfällt in <span>drei Teile</span>. Den einen bewohnen die Belger, einen anderen die Aquitaner und den dritten die, die sich selbst Kelten nennen, in unserer Sprache aber Gallier heißen. - All Gaul is divided into three - parts, one of which the Belgae inhabit, + All Gaul is divided into three + parts, one of which the Belgae inhabit, the Aquitani another, those who in their - own language are called Celts, + own language are called Celts, in our Gauls, the third. </div> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <span class="price">{{ price }} {{ currencySymbol }}</span> ❯ tests_config/run_spec.js:42:19
tests/Expressions/jsfmt.spec.js > binaryExpressions.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `binaryExpressions.melody.twig - twig-verify > binaryExpressions.melody.twig 1` mismatched - Expected + Received @@ -9,11 +9,11 @@ '$address': '<span itemprop="streetAddress">' ~ address_attributes.address ~ '</span>', } %} {% set renderLoadingBar = showNewLoadingAnimation and isCTestActive('WEB-47697') and showLoadingBar and (isABCD or isLoading) %} - {% set result = (conditionAlpha or conditionBeta) + {% set result = (conditionAlpha or conditionBeta) and (conditionGamma or conditionDelta) %} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {% set highlightValueForMoney = isFeatureEnabled('vFMV5') or isCTestActive('WEB-48935') ❯ tests_config/run_spec.js:42:19
tests/Failing/jsfmt.spec.js > failing.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `failing.melody.twig - twig-verify > failing.melody.twig 1` mismatched - Expected + Received @@ -8,25 +8,25 @@ }} </option> #} {% icon 'general/arrow-36x36' with { - classList: { - base: "#{css['arrowIcon#{action}']} icon-rtl", + classList: { + base: "#{css['arrowIcon#{action}']} icon-rtl", 'icon-flip': flipIcon ?? false } | classes - } + } %} {# "only" dropped, comment dropped #} {% embed '@hotelsearch/common/tooltip/tooltip.melody.twig' with { position: 'bottomTrailing', id: 'most-popular-badge', classList: tooltipOpen ? 'show-tooltip', isAriaHidden: not tooltipOpen ?? false } only %} - {# Necessary block to inject html into the tooltip #} + {# Necessary block to inject html into the tooltip #} {% block text %} <p>Hey></p> {% endblock %} {% endembed %} @@ -51,11 +51,11 @@ ' }} </textarea> {# Before the closing -->, whitespace keeps being added #} - <!-- + <!-- This is a comment --> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {# IF tag in element not allowed <option {% if not purchasable.isAvailable %}disabled{% endif %}> @@ -119,8 +119,8 @@ } %} ' }} </textarea> {# Before the closing -->, whitespace keeps being added #} - <!-- + <!-- This is a comment --> ❯ tests_config/run_spec.js:42:19
tests/IncludeEmbed/jsfmt.spec.js > mount.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `mount.melody.twig - twig-verify > mount.melody.twig 1` mismatched - Expected + Received @@ -21,11 +21,11 @@ <li> <article> {% mount "@hotelsearch/accommodation-list/src/Slideout/index" as "accommodation-slideout-" ~ accommodation.id.id with { - "key": "accommodation-slideout-" ~ accommodation.id.id, + "key": "accommodation-slideout-" ~ accommodation.id.id, "itemId": accommodation.id.id, "item": accommodation, "isSearchedItem": isSearchedItem, "bestPrice": accommodation.deals.bestPrice, "insights": hasInsights ? insightsData.accommodation.id.id, @@ -40,11 +40,11 @@ <div class="popover__body"> {% mount ContentComponent as 'popover-component' ~ activeView with _context %} </div> <div id="js_homepage_tabs" class="tabs no-select" key="SEOTabs"> - {% mount Tabs from '@trivago/components' as seotabs with { + {% mount Tabs from '@trivago/components' as seotabs with { tabs: tabs, classList: 'tabs--homepage', } %} </div> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ❯ tests_config/run_spec.js:42:19
tests/Statements/jsfmt.spec.js > filter.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `filter.melody.twig - twig-verify > filter.melody.twig 1` mismatched - Expected + Received @@ -9,11 +9,11 @@ {%- filter lower|escape('html') | upper | escape('markdown') | lower | upper | escape('markdown') %} <strong>SOME TEXT</strong> <p>The cat is taking a nap in the sunshine.</p> - + {% endfilter -%} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {% filter upper %} This text becomes uppercase {% endfilter %} ❯ tests_config/run_spec.js:42:19
tests/Whitespace/jsfmt.spec.js > element.melody.twig - twig-verify: tests_config/run_spec.js#L42
Error: Snapshot `element.melody.twig - twig-verify > element.melody.twig 1` mismatched - Expected + Received @@ -1,11 +1,11 @@ <div> <img src="person.jpg"> </div> <p> - This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text + This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text This is some text </p> <div class="striped-rows"> <!-- Pregunta 1 --> {% include 'pages/formularios/sub/pregunta-simple.html' %} ❯ tests_config/run_spec.js:42:19
Test (18)
Process completed with exit code 1.