Permalink
Browse files

Added (missing?) test case for data-bind and a (failing?) test for ov…

…erriding the destination
  • Loading branch information...
1 parent 6f5e336 commit d741159d34402cb8a2dcdde727f658690c0f4df3 @robashton robashton committed Dec 7, 2011
View
@@ -6,5 +6,7 @@ vows.describe('merge data into markup').addBatch({
'when providing both data and markup': {
'for simple template': common.createTest('simple'),
'for one level template': common.createTest('one-level'),
- }
+ 'for a data-bound template': common.createTest('data-bind', { "name": "data-bind" }),
+ 'for an overridden destination': common.createTest('attribute', { "url": ["data-bind", "src"]})
+ }
}).export(module);
@@ -0,0 +1 @@
+<img src="" data-bind="url"></img>
@@ -0,0 +1,3 @@
+{
+ "url": "http://example.com"
+}
@@ -0,0 +1 @@
+<img src="http://example.com" data-bind="url"></img>
@@ -1 +1 @@
-<div data-bind=name></div>
+<div data-bind="name"></div>
@@ -1 +1 @@
-<div data-bind=name>frank</div>
+<div data-bind="name">frank</div>

0 comments on commit d741159

Please sign in to comment.