Added a test case for walking up the context
This commit is contained in:
parent
e957caf386
commit
9adb88d132
11
js/test_cases/walk_up/input1.json
Normal file
11
js/test_cases/walk_up/input1.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"company": "The Pendulum",
|
||||
"globals": {
|
||||
"email": "email hidden"
|
||||
},
|
||||
"people": [
|
||||
{"name": "Alice", "job": "Chief Swinger"},
|
||||
{"name": "Bob", "job": "Chief Swayer"},
|
||||
{"name": "Chris", "job": "Barista", "company": "GenericCoffee"}
|
||||
]
|
||||
}
|
4
js/test_cases/walk_up/main.dust
Normal file
4
js/test_cases/walk_up/main.dust
Normal file
@ -0,0 +1,4 @@
|
||||
Directory for {company}:{~n}
|
||||
{#people}
|
||||
{name}: {job} at {company} (email: {globals.email}){~n}
|
||||
{/people}
|
Loading…
Reference in New Issue
Block a user