Skip to content

Commit

Permalink
replace extension for tests files
Browse files Browse the repository at this point in the history
  • Loading branch information
rellafella committed Aug 1, 2024
1 parent 2e8522d commit 556adbc
Show file tree
Hide file tree
Showing 76 changed files with 71 additions and 71 deletions.
4 changes: 2 additions & 2 deletions tests/Comments/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`htmlComments.melody.twig - twig-verify > htmlComments.melody.twig 1`] = `
exports[`htmlComments.twig - twig-verify > htmlComments.twig 1`] = `
<!-- I am a comment -->
This is a paragraph
Expand Down Expand Up @@ -34,7 +34,7 @@ A third paragraph
`;

exports[`twigComments.melody.twig - twig-verify > twigComments.melody.twig 1`] = `
exports[`twigComments.twig - twig-verify > twigComments.twig 1`] = `
{# One #}
{# Two #}
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/ConstantValue/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`constant-value-int.melody.twig - twig-verify > constant-value-int.melody.twig 1`] = `
exports[`constant-value-int.twig - twig-verify > constant-value-int.twig 1`] = `
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123
`;

exports[`constant-value-string.melody.twig - twig-verify > constant-value-string.melody.twig 1`] = `
exports[`constant-value-string.twig - twig-verify > constant-value-string.twig 1`] = `
Test string
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test string
`;

exports[`special-cases.melody.twig - twig-verify > special-cases.melody.twig 1`] = `
exports[`special-cases.twig - twig-verify > special-cases.twig 1`] = `
{% if isRTL %}&#8206;{% endif %}
{% if searchResultFailing %}
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions tests/ControlStructures/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`for.melody.twig - twig-verify > for.melody.twig 1`] = `
exports[`for.twig - twig-verify > for.twig 1`] = `
<ul>
{% for item in items %}
<li class="{{ loop.last ? 'last' : '' }}">
Expand Down Expand Up @@ -35,7 +35,7 @@ exports[`for.melody.twig - twig-verify > for.melody.twig 1`] = `
`;
exports[`forIfElse.melody.twig - twig-verify > forIfElse.melody.twig 1`] = `
exports[`forIfElse.twig - twig-verify > forIfElse.twig 1`] = `
<ul>
{% for a,b in c | slice(3, c.length) if b is even -%}
<li>{{ a }} - {{ b }}</li>
Expand Down Expand Up @@ -75,7 +75,7 @@ exports[`forIfElse.melody.twig - twig-verify > forIfElse.melody.twig 1`] = `
`;
exports[`forInclude.melody.twig - twig-verify > forInclude.melody.twig 1`] = `
exports[`forInclude.twig - twig-verify > forInclude.twig 1`] = `
{% for foo in range(1, category) %}
<span key="{{ foo }}" class="qtp-item__star icon-ic icon-icn_star--white {{ foo }}">
{% include './Star.twig' only %}
Expand All @@ -91,7 +91,7 @@ exports[`forInclude.melody.twig - twig-verify > forInclude.melody.twig 1`] = `
`;
exports[`forWithBlock.melody.twig - twig-verify > forWithBlock.melody.twig 1`] = `
exports[`forWithBlock.twig - twig-verify > forWithBlock.twig 1`] = `
<h1>{{ title | title }}</h1>
<ul>
{% for item in items %}
Expand All @@ -118,7 +118,7 @@ exports[`forWithBlock.melody.twig - twig-verify > forWithBlock.melody.twig 1`] =
`;
exports[`if.melody.twig - twig-verify > if.melody.twig 1`] = `
exports[`if.twig - twig-verify > if.twig 1`] = `
<div>
{%- if foo %}
<div class="foo"></div>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Declaration/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`doctype.melody.twig - twig-verify > doctype.melody.twig 1`] = `
exports[`doctype.twig - twig-verify > doctype.twig 1`] = `
<!DOCTYPE html>
<! DOCTYPE html>
Expand Down
File renamed without changes.
20 changes: 10 additions & 10 deletions tests/Element/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`attributes.melody.twig - twig-verify > attributes.melody.twig 1`] = `
exports[`attributes.twig - twig-verify > attributes.twig 1`] = `
<a href="#abcd" target="_blank" lang="en" >Link</a>
<fantasy {{ {
Expand Down Expand Up @@ -35,7 +35,7 @@ exports[`attributes.melody.twig - twig-verify > attributes.melody.twig 1`] = `
`;
exports[`breakingSiblings.melody.twig - twig-verify > breakingSiblings.melody.twig 1`] = `
exports[`breakingSiblings.twig - twig-verify > breakingSiblings.twig 1`] = `
<span>One</span><b>Two</b><i>Three</i><span>Four</span><b>Five</b><i>Six</i><span>Seven</span>
<span>One</span>
Expand All @@ -60,7 +60,7 @@ exports[`breakingSiblings.melody.twig - twig-verify > breakingSiblings.melody.tw
`;
exports[`children.melody.twig - twig-verify > children.melody.twig 1`] = `
exports[`children.twig - twig-verify > children.twig 1`] = `
<div class="{{ css.loader }}">
<div class="{{ css.barWrapper }}">
<span class="{{ css.bar }}"></span>
Expand All @@ -77,7 +77,7 @@ exports[`children.melody.twig - twig-verify > children.melody.twig 1`] = `
`;
exports[`emptyLines.melody.twig - twig-verify > emptyLines.melody.twig 1`] = `
exports[`emptyLines.twig - twig-verify > emptyLines.twig 1`] = `
<div>
<img src="/img/posts/08/07/dns-resolution-expl.png" alt="DNS explained">
Expand Down Expand Up @@ -105,14 +105,14 @@ exports[`emptyLines.melody.twig - twig-verify > emptyLines.melody.twig 1`] = `
`;
exports[`extraSpaces.melody.twig - twig-verify > extraSpaces.melody.twig 1`] = `
exports[`extraSpaces.twig - twig-verify > extraSpaces.twig 1`] = `
<span >Text</span >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<span>Text</span>
`;
exports[`manyAttributes.melody.twig - twig-verify > manyAttributes.melody.twig 1`] = `
exports[`manyAttributes.twig - twig-verify > manyAttributes.twig 1`] = `
<span attr1="one" attr2="two" attr3="three" attr4="four" attr5="five" attr6="six" attr7="seven" attr8="eight">Text</span>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<span attr1="one"
Expand All @@ -128,7 +128,7 @@ exports[`manyAttributes.melody.twig - twig-verify > manyAttributes.melody.twig 1
`;
exports[`oneLine.melody.twig - twig-verify > oneLine.melody.twig 1`] = `
exports[`oneLine.twig - twig-verify > oneLine.twig 1`] = `
<a href="{{ url }}">
Next
</a>
Expand All @@ -137,7 +137,7 @@ exports[`oneLine.melody.twig - twig-verify > oneLine.melody.twig 1`] = `
`;
exports[`selfClosing.melody.twig - twig-verify > selfClosing.melody.twig 1`] = `
exports[`selfClosing.twig - twig-verify > selfClosing.twig 1`] = `
<input type="text" name="user" />
<input attr1="one" attr2="two" attr3="three" attr4="four" attr5="five" attr6="six" attr7="seven" attr8="eight" />
Expand All @@ -161,14 +161,14 @@ exports[`selfClosing.melody.twig - twig-verify > selfClosing.melody.twig 1`] = `
`;
exports[`siblings.melody.twig - twig-verify > siblings.melody.twig 1`] = `
exports[`siblings.twig - twig-verify > siblings.twig 1`] = `
<span>One</span><b>Two</b><i>Three</i>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<span>One</span><b>Two</b><i>Three</i>
`;
exports[`whitespace.melody.twig - twig-verify > whitespace.melody.twig 1`] = `
exports[`whitespace.twig - twig-verify > whitespace.twig 1`] = `
<span class="price">{{ price }} {{ currencySymbol }}</span>
<span class="price">Price: {{ price }} {{ currencySymbol }} per night</span>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions tests/Expressions/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`arrayExpression.melody.twig - twig-verify > arrayExpression.melody.twig 1`] = `
exports[`arrayExpression.twig - twig-verify > arrayExpression.twig 1`] = `
{{ [2, 3, "cat"] }}
{{ [ 2, 3, "cat","dog", "mouse"] }}
Expand Down Expand Up @@ -42,7 +42,7 @@ exports[`arrayExpression.melody.twig - twig-verify > arrayExpression.melody.twig
`;

exports[`binaryExpressions.melody.twig - twig-verify > binaryExpressions.melody.twig 1`] = `
exports[`binaryExpressions.twig - twig-verify > binaryExpressions.twig 1`] = `
{% set highlightValueForMoney = isFeatureEnabled('vFMV5') or isCTestActive('WEB-48935') or isCTestActive('WEB-48956') or isCTestActive('WEB-48955')%}
{% set name = condition1 or condition2 and condition3 or condition4 or condition5 and condition6 %}
Expand Down Expand Up @@ -95,7 +95,7 @@ exports[`binaryExpressions.melody.twig - twig-verify > binaryExpressions.melody.
`;

exports[`callExpression.melody.twig - twig-verify > callExpression.melody.twig 1`] = `
exports[`callExpression.twig - twig-verify > callExpression.twig 1`] = `
{{ range(3) }}
{{ date('d/m/Y H:i', timezone="Europe/Paris") }}
Expand Down Expand Up @@ -155,7 +155,7 @@ exports[`callExpression.melody.twig - twig-verify > callExpression.melody.twig 1
`;
exports[`conditionalExpression.melody.twig - twig-verify > conditionalExpression.melody.twig 1`] = `
exports[`conditionalExpression.twig - twig-verify > conditionalExpression.twig 1`] = `
{{ test ? "One" : "Two" }}
{{ test ? "This is a slightly longer string to overflow the line" : "and here is its counterpart" }}
Expand All @@ -172,12 +172,12 @@ exports[`conditionalExpression.melody.twig - twig-verify > conditionalExpression
`;
exports[`filterExpression.melody.twig - twig-verify > filterExpression.melody.twig 1`] = `
exports[`filterExpression.twig - twig-verify > filterExpression.twig 1`] = `
{{ 'test.foo' | split('.') }}
{{ range(3) | sort | join(',') }}
{{ 'SHOUTING' | lower|escape('html') | upper | escape('markdown') | lower | upper | escape('markdown') }}
{% include './usefulDeal.melody.twig' with deal | merge(
{% include './usefulDeal.twig' with deal | merge(
{
'index': loop.index0,
'isOverview': isOverview,
Expand Down Expand Up @@ -205,7 +205,7 @@ exports[`filterExpression.melody.twig - twig-verify > filterExpression.melody.tw
|escape('markdown')
}}
{% include './usefulDeal.melody.twig' with deal|merge({
{% include './usefulDeal.twig' with deal|merge({
index: loop.index0,
isOverview: isOverview,
isRTL: isRTL,
Expand All @@ -224,14 +224,14 @@ exports[`filterExpression.melody.twig - twig-verify > filterExpression.melody.tw
`;
exports[`memberExpression.melody.twig - twig-verify > memberExpression.melody.twig 1`] = `
exports[`memberExpression.twig - twig-verify > memberExpression.twig 1`] = `
{{ alternativeMarriottRewardRates[deal.dealId].short }}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{{ alternativeMarriottRewardRates[deal.dealId].short }}
`;
exports[`objectExpression.melody.twig - twig-verify > objectExpression.melody.twig 1`] = `
exports[`objectExpression.twig - twig-verify > objectExpression.twig 1`] = `
{{ {
a: "foo",
"b#{ar}": "bar",
Expand Down Expand Up @@ -260,7 +260,7 @@ exports[`objectExpression.melody.twig - twig-verify > objectExpression.melody.tw
`;
exports[`operators.melody.twig - twig-verify > operators.melody.twig 1`] = `
exports[`operators.twig - twig-verify > operators.twig 1`] = `
{{ a b-and b }}
{{ a b-or b }}
{{ a b-xor b }}
Expand Down Expand Up @@ -392,7 +392,7 @@ exports[`operators.melody.twig - twig-verify > operators.melody.twig 1`] = `
`;
exports[`stringConcat.melody.twig - twig-verify > stringConcat.melody.twig 1`] = `
exports[`stringConcat.twig - twig-verify > stringConcat.twig 1`] = `
<div>
{{ first ~ second }}
</div>
Expand Down Expand Up @@ -423,7 +423,7 @@ exports[`stringConcat.melody.twig - twig-verify > stringConcat.melody.twig 1`] =
`;
exports[`stringLiteral.melody.twig - twig-verify > stringLiteral.melody.twig 1`] = `
exports[`stringLiteral.twig - twig-verify > stringLiteral.twig 1`] = `
{{ 'zzz\\\\bar\\\\baz' }}
{{ "College - Women's" }}
Expand All @@ -446,7 +446,7 @@ exports[`stringLiteral.melody.twig - twig-verify > stringLiteral.melody.twig 1`]
`;
exports[`unaryNot.melody.twig - twig-verify > unaryNot.melody.twig 1`] = `
exports[`unaryNot.twig - twig-verify > unaryNot.twig 1`] = `
{% if not invalid %}
<p>All's well.</p>
{% endif %}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ range(3) | sort | join(',') }}
{{ 'SHOUTING' | lower|escape('html') | upper | escape('markdown') | lower | upper | escape('markdown') }}

{% include './usefulDeal.melody.twig' with deal | merge(
{% include './usefulDeal.twig' with deal | merge(
{
'index': loop.index0,
'isOverview': isOverview,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions tests/Failing/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`controversial.melody.twig - twig-verify > controversial.melody.twig 1`] = `
exports[`controversial.twig - twig-verify > controversial.twig 1`] = `
{% set isRewardRate = isMarriottRewardRate or (rewardRateAltIds and deal.dealId in rewardRateAltIds[accommodation.id.id]) %}
<!-- Alternatively, introduce another variable -->
Expand Down Expand Up @@ -31,7 +31,7 @@ exports[`controversial.melody.twig - twig-verify > controversial.melody.twig 1`]
</article>
<!-- Parentheses stripped. Cannot fix this. Either always parentheses, or never when args empty. -->
{% include './partials/arrowBtn.melody.twig' with {
{% include './partials/arrowBtn.twig' with {
ref: prev | default(),
} only %}
Expand Down Expand Up @@ -72,7 +72,7 @@ exports[`controversial.melody.twig - twig-verify > controversial.melody.twig 1`]
</article>
<!-- Parentheses stripped. Cannot fix this. Either always parentheses, or never when args empty. -->
{% include './partials/arrowBtn.melody.twig' with {
{% include './partials/arrowBtn.twig' with {
ref: prev | default
} only %}
Expand All @@ -89,7 +89,7 @@ exports[`controversial.melody.twig - twig-verify > controversial.melody.twig 1`]
`;
exports[`failing.melody.twig - twig-verify > failing.melody.twig 1`] = `
exports[`failing.twig - twig-verify > failing.twig 1`] = `
{# IF tag in element not allowed
<option {% if not purchasable.isAvailable %}disabled{% endif %}>
{{ purchasable.description }}
Expand All @@ -110,7 +110,7 @@ exports[`failing.melody.twig - twig-verify > failing.melody.twig 1`] = `
%}
{# "only" dropped, comment dropped #}
{% embed '@hotelsearch/common/tooltip/tooltip.melody.twig' with {
{% embed '@hotelsearch/common/tooltip/tooltip.twig' with {
position: 'bottomTrailing',
id: 'most-popular-badge',
classList: tooltipOpen ? 'show-tooltip',
Expand Down Expand Up @@ -171,7 +171,7 @@ exports[`failing.melody.twig - twig-verify > failing.melody.twig 1`] = `
%}
{# "only" dropped, comment dropped #}
{% embed '@hotelsearch/common/tooltip/tooltip.melody.twig'
{% embed '@hotelsearch/common/tooltip/tooltip.twig'
with {
position: 'bottomTrailing',
id: 'most-popular-badge',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</article>

<!-- Parentheses stripped. Cannot fix this. Either always parentheses, or never when args empty. -->
{% include './partials/arrowBtn.melody.twig' with {
{% include './partials/arrowBtn.twig' with {
ref: prev | default(),
} only %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
%}

{# "only" dropped, comment dropped #}
{% embed '@hotelsearch/common/tooltip/tooltip.melody.twig' with {
{% embed '@hotelsearch/common/tooltip/tooltip.twig' with {
position: 'bottomTrailing',
id: 'most-popular-badge',
classList: tooltipOpen ? 'show-tooltip',
Expand Down
Loading

0 comments on commit 556adbc

Please sign in to comment.