Skip to content

Commit

Permalink
Add JSON conversion for dotted keys tests (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Aug 11, 2024
1 parent 7358dd5 commit c0b03a9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions specs/interpolation.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,27 @@
"template": "{{#a}}{{b.c}}{{/a}}",
"expected": ""
},
{
"name": "Dotted Names are never single keys",
"desc": "Dotted names shall not be parsed as single, atomic keys",
"data": {
"a.b": "c"
},
"template": "{{a.b}}",
"expected": ""
},
{
"name": "Dotted Names - No Masking",
"desc": "Dotted Names in a given context are unvavailable due to dot splitting",
"data": {
"a.b": "c",
"a": {
"b": "d"
}
},
"template": "{{a.b}}",
"expected": "d"
},
{
"name": "Implicit Iterators - Basic Interpolation",
"desc": "Unadorned tags should interpolate content into the template.",
Expand Down

0 comments on commit c0b03a9

Please sign in to comment.