Skip to content

Commit 2a1615b

Browse files
committed
test: add indentation chain method case
1 parent de9f7e6 commit 2a1615b

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<a class="task-edit"
2+
href="{{
3+
ea_url()
4+
.setDashboard('App\\Controller\\Dashboard\\DashboardController')
5+
.setController('App\\Controller\\Dashboard\\CRUD\\TacheCrudController')
6+
.setAction('edit')
7+
.setEntityId(tache.id)
8+
.set('sort',null)
9+
}}">
10+
<i class="fa-solid fa-edit"></i>
11+
</a>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<a class="task-edit"
2+
href="{{
3+
ea_url().setDashboard(
4+
'App\\Controller\\Dashboard\\DashboardController'
5+
).setController(
6+
'App\\Controller\\Dashboard\\CRUD\\TacheCrudController'
7+
).setAction(
8+
'edit'
9+
).setEntityId(
10+
tache.id
11+
).set(
12+
'sort',
13+
null
14+
)
15+
}}">
16+
<i class="fa-solid fa-edit"></i>
17+
</a>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { run_spec } from "tests_config/run_spec";
2+
import { describe, expect, it } from "vitest";
3+
4+
describe("Experimental", () => {
5+
it("Properly indent chain method", async () => {
6+
const { actual, snapshotFile } = await run_spec(import.meta.url, {
7+
source: "chain_indentation.twig"
8+
});
9+
await expect(actual).toMatchFileSnapshot(snapshotFile);
10+
});
11+
});

0 commit comments

Comments
 (0)