[WIP] Bugfix: Fix indentation for chained method #221
Annotations
2 errors and 1 warning
Run Test:
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')
- .limit(10)
- .all(a.b)
+ craft.entries.section('news').section('news').orderBy(
+ 'postDate DESC'
+ ).limit(
+ 10
+ ).all(
+ a.b
+ )
}}
{{ craft.entries.all() }}
❯ tests/Expressions/jsfmt.spec.js:102: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