Skip to content
This repository
Browse code

[test] added test for two attributes update

  • Loading branch information...
commit 78cea8fa756a4b9e9795e4c63490562c31ba5d4a 1 parent 2d52e5a
authored August 23, 2012
11  test/api-test.js
@@ -272,6 +272,17 @@ vows.describe('merge data into markup').addBatch({
272 272
         
273 273
       }()
274 274
 
  275
+    ),
  276
+
  277
+    '(24) Two maps for two attributes should update both attributes': (
  278
+
  279
+      function() {
  280
+        var map = Plates.Map();
  281
+        map.class('author').use('url').as('href');
  282
+        map.class('author').use('class').as('class');
  283
+
  284
+        return common.createTest('test-24', map);
  285
+      }()
275 286
     )
276 287
 
277 288
 
1  test/fixtures/test-24.html
... ...
@@ -0,0 +1 @@
  1
+<a class="author" href=""></a>
4  test/fixtures/test-24.json
... ...
@@ -0,0 +1,4 @@
  1
+{
  2
+  "class": "class1 author",
  3
+  "url": "//the.url.com/abc"
  4
+}
1  test/fixtures/test-24.out
... ...
@@ -0,0 +1 @@
  1
+<a class="class1 author" href="//the.url.com/abc"></a>

0 notes on commit 78cea8f

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