Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Apr 5, 2024
1 parent 9f95138 commit dab98cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/print.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,20 @@ Deno.test({
});
},
});

Deno.test({
name: "Print key variables",
fn: async () => {
await test({
// It should work like {{ message[it.key] }}
template: `{{ message[key] }}`,
expected: "It works!",
data: {
message: {
foo: "It works!",
},
key: "foo",
},
});
},
});

0 comments on commit dab98cd

Please sign in to comment.