diff --git a/test/api-test.js b/test/api-test.js index 2d80b2a..409dc14 100644 --- a/test/api-test.js +++ b/test/api-test.js @@ -220,6 +220,13 @@ vows.describe('merge data into markup').addBatch({ return common.createTest('test-16'); }() ), + + '(17) It should be able to iterate over deeply nested objects': ( + + function() { + return common.createTest('test-17'); + }() + ) } }).export(module); diff --git a/test/fixtures/test-17.html b/test/fixtures/test-17.html new file mode 100644 index 0000000..f695d29 --- /dev/null +++ b/test/fixtures/test-17.html @@ -0,0 +1 @@ + diff --git a/test/fixtures/test-17.json b/test/fixtures/test-17.json new file mode 100644 index 0000000..205180b --- /dev/null +++ b/test/fixtures/test-17.json @@ -0,0 +1,48 @@ +{ + + "organizations" : [ + + { + "name": "DotOrg", + + "staff": [ + { + "name": { + "first": "Dot", + "last" : "Matrix" + } + }, + { + "name": { + "first": "Serious", + "last" : "Business" + } + } + ] + + }, + + { + "name": "FooBar", + + "staff": [ + { + "name": { + "first": "Foo", + "last" : "Bar" + } + }, + { + "name": { + "first": "Baz", + "last" : "Bitsom" + } + } + ] + + } + + + ] + +} diff --git a/test/fixtures/test-17.out b/test/fixtures/test-17.out new file mode 100644 index 0000000..7e6a27b --- /dev/null +++ b/test/fixtures/test-17.out @@ -0,0 +1 @@ +