Skip to content
Browse files

added failing data bind tests

  • Loading branch information...
1 parent 09cba47 commit 7455f1fc8eea7d266d0095d5505e9bd95aab21e7 @mwawrusch mwawrusch committed with indutny Nov 11, 2011
Showing with 6 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 test/api-test.js
  3. +1 −0 test/templates/data-bind.html
  4. +1 −0 test/templates/data-bind.json
  5. +1 −0 test/templates/data-bind.out
View
1 .gitignore
@@ -3,3 +3,4 @@ gmon.out
index.html
index.css
node_modules
+npm-debug.log
View
3 test/api-test.js
@@ -5,6 +5,7 @@ var vows = require('vows'),
vows.describe('merge data into markup').addBatch({
'when creating a new constructor and providing both data and markup': {
'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);
View
1 test/templates/data-bind.html
@@ -0,0 +1 @@
+<div data-bind="name"></div>
View
1 test/templates/data-bind.json
@@ -0,0 +1 @@
+{ "name": "frank" }
View
1 test/templates/data-bind.out
@@ -0,0 +1 @@
+<div data-bind="name">frank</div>

0 comments on commit 7455f1f

Please sign in to comment.
Something went wrong with that request. Please try again.