Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/function.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Deno.test("Function tag (async)", async () => {
await test({
template: `
{{ async function hello }}
{{ > const text = await Promise.resolve("Hello world") }}
{{> const text = await Promise.resolve("Hello world") }}
{{ text }}
{{ /function }}

Expand Down Expand Up @@ -86,7 +86,7 @@ Deno.test("Function scope is respected", async () => {
await test({
template: `
{{ export function hello }}
{{ > const message = "Hello world" }}
{{> const message = "Hello world" }}
{{ /export }}

{{ message }}
Expand All @@ -97,7 +97,7 @@ Deno.test("Function scope is respected", async () => {
await test({
template: `
{{ function hello }}
{{ > const message = "I shouldn't print" }}
{{> const message = "I shouldn't print" }}
{{ /function }}

{{> const message = "Hello world" }}
Expand Down