Permalink
Browse files

[test] Test to demonstrate #47

  • Loading branch information...
1 parent 6bce09e commit 5a1c994230a89eb255e7ab3bc2173af5b3d054e6 @cederigo cederigo committed with pksunkara Mar 20, 2012
Showing with 31 additions and 0 deletions.
  1. +8 −0 test/api-test.js
  2. +9 −0 test/fixtures/test-19.html
  3. +5 −0 test/fixtures/test-19.json
  4. +9 −0 test/fixtures/test-19.out
View
@@ -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);
@@ -0,0 +1,9 @@
+<div class="date"></div>
+<div class="host">
+ <div class="id"></div>
+ <div class="name"></div>
+</div>
+<div class="guest">
+ <div class="id"></div>
+ <div class="name"></div>
+</div>
@@ -0,0 +1,5 @@
+{
+ "date" : "Sunday",
+ "host" : { "id": "pol_int", "name": "Poland" },
+ "guest" : { "id": "gre_int", "name": "Greece" }
+}
@@ -0,0 +1,9 @@
+<div class="date">Sunday</div>
+<div class="host">
+ <div class="id">pol_int</div>
+ <div class="name">Poland</div>
+</div>
+<div class="guest">
+ <div class="id">gre_int</div>
+ <div class="name">Greece</div>
+</div>

0 comments on commit 5a1c994

Please sign in to comment.