Skip to content

Commit

Permalink
[test] Test to demonstrate #47
Browse files Browse the repository at this point in the history
  • Loading branch information
cederigo authored and pksunkara committed Mar 20, 2012
1 parent 6bce09e commit 5a1c994
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/api-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
9 changes: 9 additions & 0 deletions test/fixtures/test-19.html
Original file line number Diff line number Diff line change
@@ -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>
5 changes: 5 additions & 0 deletions test/fixtures/test-19.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"date" : "Sunday",
"host" : { "id": "pol_int", "name": "Poland" },
"guest" : { "id": "gre_int", "name": "Greece" }
}
9 changes: 9 additions & 0 deletions test/fixtures/test-19.out
Original file line number Diff line number Diff line change
@@ -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.