[WIP] Bugfix: Fix indentation for chained method #229
Annotations
12 errors and 3 warnings
tests/Expressions/jsfmt.spec.js > Expressions > should handle call expressions:
tests/Expressions/jsfmt.spec.js#L27
Error: Snapshot `Expressions > should handle call expressions 1` mismatched
- Expected
+ Received
@@ -8,14 +8,12 @@
<span class="{{ css.partner }}">
<div>
<div>
{{
- helpers.partner(
- cheapestPrice.group.groupId,
- cheapestPrice.name.value
- )
+ helpers.partner(cheapestPrice.group.groupId, cheapestPrice.name
+ .value)
}}
</div>
</div>
</span>
@@ -31,7 +29,8 @@
{{
craft.someCoolObject.someMethodToUse({
foo: 'bar',
bar: 'baz',
baz: 'foo'
- }).all()
+ })
+ .all()
}}
❯ tests/Expressions/jsfmt.spec.js:27:9
|
tests/Expressions/jsfmt.spec.js > Expressions > should handle mapping expressions:
tests/Expressions/jsfmt.spec.js#L45
Error: Snapshot `Expressions > should handle mapping expressions 1` mismatched
- Expected
+ Received
@@ -62,11 +62,12 @@
success: 'alert-success',
warning: 'alert-warning',
error: 'alert-error'
}
}
- }).apply({
+ })
+ .apply({
theme
})
})
}}
></div>
❯ tests/Expressions/jsfmt.spec.js:45:9
|
tests/Expressions/jsfmt.spec.js > Expressions > Properly indent chain method:
tests/Expressions/jsfmt.spec.js#L102
Error: Snapshot `Expressions > Properly indent chain method 1` mismatched
- Expected
+ Received
<a
class="task-edit"
href="{{
- ea_url()
- .setDashboard('App\\Controller\\Dashboard\\DashboardController')
- .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
- .setAction('edit')
- .setEntityId(tache.id)
- .set('sort', null)
+ ea_url().setDashboard('App\\Controller\\Dashboard\\DashboardController')
+ .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
+ .setAction('edit')
+ .setEntityId(tache.id)
+ .set('sort', null)
}}"
>
<i class="fa-solid fa-edit"></i>
</a>
{{
- craft
- .entries
- .section('news')
- .section('news')
- .orderBy('postDate DESC')
+ craft.entries.section('news').section('news').orderBy('postDate DESC')
.limit(10)
.all(a.b)
}}
{{ craft.entries.all() }}
❯ tests/Expressions/jsfmt.spec.js:102:9
|
Test (20)
Process completed with exit code 1.
|
tests/Expressions/jsfmt.spec.js > Expressions > should handle call expressions:
tests/Expressions/jsfmt.spec.js#L27
Error: Snapshot `Expressions > should handle call expressions 1` mismatched
- Expected
+ Received
@@ -8,14 +8,12 @@
<span class="{{ css.partner }}">
<div>
<div>
{{
- helpers.partner(
- cheapestPrice.group.groupId,
- cheapestPrice.name.value
- )
+ helpers.partner(cheapestPrice.group.groupId, cheapestPrice.name
+ .value)
}}
</div>
</div>
</span>
@@ -31,7 +29,8 @@
{{
craft.someCoolObject.someMethodToUse({
foo: 'bar',
bar: 'baz',
baz: 'foo'
- }).all()
+ })
+ .all()
}}
❯ tests/Expressions/jsfmt.spec.js:27:9
|
tests/Expressions/jsfmt.spec.js > Expressions > should handle mapping expressions:
tests/Expressions/jsfmt.spec.js#L45
Error: Snapshot `Expressions > should handle mapping expressions 1` mismatched
- Expected
+ Received
@@ -62,11 +62,12 @@
success: 'alert-success',
warning: 'alert-warning',
error: 'alert-error'
}
}
- }).apply({
+ })
+ .apply({
theme
})
})
}}
></div>
❯ tests/Expressions/jsfmt.spec.js:45:9
|
tests/Expressions/jsfmt.spec.js > Expressions > Properly indent chain method:
tests/Expressions/jsfmt.spec.js#L102
Error: Snapshot `Expressions > Properly indent chain method 1` mismatched
- Expected
+ Received
<a
class="task-edit"
href="{{
- ea_url()
- .setDashboard('App\\Controller\\Dashboard\\DashboardController')
- .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
- .setAction('edit')
- .setEntityId(tache.id)
- .set('sort', null)
+ ea_url().setDashboard('App\\Controller\\Dashboard\\DashboardController')
+ .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
+ .setAction('edit')
+ .setEntityId(tache.id)
+ .set('sort', null)
}}"
>
<i class="fa-solid fa-edit"></i>
</a>
{{
- craft
- .entries
- .section('news')
- .section('news')
- .orderBy('postDate DESC')
+ craft.entries.section('news').section('news').orderBy('postDate DESC')
.limit(10)
.all(a.b)
}}
{{ craft.entries.all() }}
❯ tests/Expressions/jsfmt.spec.js:102:9
|
Test (22)
Process completed with exit code 1.
|
tests/Expressions/jsfmt.spec.js > Expressions > should handle call expressions:
tests/Expressions/jsfmt.spec.js#L27
Error: Snapshot `Expressions > should handle call expressions 1` mismatched
- Expected
+ Received
@@ -8,14 +8,12 @@
<span class="{{ css.partner }}">
<div>
<div>
{{
- helpers.partner(
- cheapestPrice.group.groupId,
- cheapestPrice.name.value
- )
+ helpers.partner(cheapestPrice.group.groupId, cheapestPrice.name
+ .value)
}}
</div>
</div>
</span>
@@ -31,7 +29,8 @@
{{
craft.someCoolObject.someMethodToUse({
foo: 'bar',
bar: 'baz',
baz: 'foo'
- }).all()
+ })
+ .all()
}}
❯ tests/Expressions/jsfmt.spec.js:27:9
|
tests/Expressions/jsfmt.spec.js > Expressions > should handle mapping expressions:
tests/Expressions/jsfmt.spec.js#L45
Error: Snapshot `Expressions > should handle mapping expressions 1` mismatched
- Expected
+ Received
@@ -62,11 +62,12 @@
success: 'alert-success',
warning: 'alert-warning',
error: 'alert-error'
}
}
- }).apply({
+ })
+ .apply({
theme
})
})
}}
></div>
❯ tests/Expressions/jsfmt.spec.js:45:9
|
tests/Expressions/jsfmt.spec.js > Expressions > Properly indent chain method:
tests/Expressions/jsfmt.spec.js#L102
Error: Snapshot `Expressions > Properly indent chain method 1` mismatched
- Expected
+ Received
<a
class="task-edit"
href="{{
- ea_url()
- .setDashboard('App\\Controller\\Dashboard\\DashboardController')
- .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
- .setAction('edit')
- .setEntityId(tache.id)
- .set('sort', null)
+ ea_url().setDashboard('App\\Controller\\Dashboard\\DashboardController')
+ .setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
+ .setAction('edit')
+ .setEntityId(tache.id)
+ .set('sort', null)
}}"
>
<i class="fa-solid fa-edit"></i>
</a>
{{
- craft
- .entries
- .section('news')
- .section('news')
- .orderBy('postDate DESC')
+ craft.entries.section('news').section('news').orderBy('postDate DESC')
.limit(10)
.all(a.b)
}}
{{ craft.entries.all() }}
❯ tests/Expressions/jsfmt.spec.js:102:9
|
Test (18)
Process completed with exit code 1.
|
Test (20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (22)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|