Skip to content

Commit

Permalink
added failing data bind tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mwawrusch authored and indutny committed Nov 12, 2011
1 parent 09cba47 commit 7455f1f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ gmon.out
index.html index.html
index.css index.css
node_modules node_modules
npm-debug.log
3 changes: 2 additions & 1 deletion test/api-test.js
Expand Up @@ -5,6 +5,7 @@ var vows = require('vows'),
vows.describe('merge data into markup').addBatch({ vows.describe('merge data into markup').addBatch({
'when creating a new constructor and providing both data and markup': { 'when creating a new constructor and providing both data and markup': {
'for simple template': common.createTest('simple'), 'for simple template': common.createTest('simple'),
'for one level template': common.createTest('one-level') 'for one level template': common.createTest('one-level'),
'for a template using data-bind': common.createTest('data-bind')
} }
}).export(module); }).export(module);
1 change: 1 addition & 0 deletions test/templates/data-bind.html
@@ -0,0 +1 @@
<div data-bind="name"></div>
1 change: 1 addition & 0 deletions test/templates/data-bind.json
@@ -0,0 +1 @@
{ "name": "frank" }
1 change: 1 addition & 0 deletions test/templates/data-bind.out
@@ -0,0 +1 @@
<div data-bind="name">frank</div>

0 comments on commit 7455f1f

Please sign in to comment.