Permalink
Browse files

[test] added test for two attributes update

  • Loading branch information...
1 parent 2d52e5a commit 78cea8fa756a4b9e9795e4c63490562c31ba5d4a @pgte pgte committed Aug 23, 2012
Showing with 17 additions and 0 deletions.
  1. +11 −0 test/api-test.js
  2. +1 −0 test/fixtures/test-24.html
  3. +4 −0 test/fixtures/test-24.json
  4. +1 −0 test/fixtures/test-24.out
View
@@ -272,6 +272,17 @@ vows.describe('merge data into markup').addBatch({
}()
+ ),
+
+ '(24) Two maps for two attributes should update both attributes': (
+
+ function() {
+ var map = Plates.Map();
+ map.class('author').use('url').as('href');
+ map.class('author').use('class').as('class');
+
+ return common.createTest('test-24', map);
+ }()
)
@@ -0,0 +1 @@
+<a class="author" href=""></a>
@@ -0,0 +1,4 @@
+{
+ "class": "class1 author",
+ "url": "//the.url.com/abc"
+}
@@ -0,0 +1 @@
+<a class="class1 author" href="//the.url.com/abc"></a>

0 comments on commit 78cea8f

Please sign in to comment.