diff --git a/test/api-test.js b/test/api-test.js index 6911b65..5d87fba 100644 --- a/test/api-test.js +++ b/test/api-test.js @@ -196,6 +196,14 @@ vows.describe('merge data into markup').addBatch({ }() ), + + '(19) It should be able to access nested objects': ( + + function() { + return common.createTest('test-19'); + }() + + ), } }).export(module); diff --git a/test/fixtures/test-19.html b/test/fixtures/test-19.html new file mode 100644 index 0000000..2dee800 --- /dev/null +++ b/test/fixtures/test-19.html @@ -0,0 +1,9 @@ +
+
+
+
+
+
+
+
+
diff --git a/test/fixtures/test-19.json b/test/fixtures/test-19.json new file mode 100644 index 0000000..f3287fd --- /dev/null +++ b/test/fixtures/test-19.json @@ -0,0 +1,5 @@ +{ + "date" : "Sunday", + "host" : { "id": "pol_int", "name": "Poland" }, + "guest" : { "id": "gre_int", "name": "Greece" } +} diff --git a/test/fixtures/test-19.out b/test/fixtures/test-19.out new file mode 100644 index 0000000..909c137 --- /dev/null +++ b/test/fixtures/test-19.out @@ -0,0 +1,9 @@ +
Sunday
+
+
pol_int
+
Poland
+
+
+
gre_int
+
Greece
+