Skip to content
This repository
Browse code

Added another test for someting I want to work

  • Loading branch information...
commit ec486cc49eae1bc780a52ad66784a59308608a70 1 parent d741159
Rob "Hurricane" Ashton authored December 12, 2011
3  test/api-test.js
@@ -7,6 +7,7 @@ vows.describe('merge data into markup').addBatch({
7 7
     'for simple template': common.createTest('simple'),
8 8
     'for one level template': common.createTest('one-level'),
9 9
     'for a data-bound template': common.createTest('data-bind', { "name": "data-bind" }),
10  
-    'for an overridden destination': common.createTest('attribute', { "url": ["data-bind", "src"]})
  10
+    'for a different target attribute': common.createTest('attribute', { "url": ["data-bind", "src"]}),
  11
+    'for an different target attribute with extra values': common.createTest('extra-attribute', { "url": ["class", "src"]})
11 12
  }
12 13
 }).export(module);
1  test/templates/extra-attribute.html
... ...
@@ -0,0 +1 @@
  1
+<img src="" class="url extra"></img>
3  test/templates/extra-attribute.json
... ...
@@ -0,0 +1,3 @@
  1
+{
  2
+  "url": "http://example.com"
  3
+}
1  test/templates/extra-attribute.out
... ...
@@ -0,0 +1 @@
  1
+<img src="http://example.com" class="url extra"></img>

0 notes on commit ec486cc

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