Skip to content

Commit

Permalink
added breaking test to #92
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 12, 2025
1 parent 56e32e5 commit 93ac07c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ Deno.test("Function tag", async () => {
`,
expected: "Hello World / Hello Vento",
});

await test({
template: `
{{ function hello ({name = "World"} = {}) }}Hello {{ name }}{{ /function }}
{{ hello() }} / {{ hello({ name: "Vento" }) }}
`,
expected: "Hello World / Hello Vento",
});
});

Deno.test("Function tag (async)", async () => {
Expand Down

0 comments on commit 93ac07c

Please sign in to comment.