Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

oops got these test descriptions backwards

  • Loading branch information...
commit c6745f2bf1237774c13b24ccf95fa44c079669a5 1 parent 0bfa046
Steve Conover authored December 09, 2010 edspencer committed December 09, 2010

Showing 1 changed file with 10 additions and 9 deletions. Show diff stats Hide diff stats

  1. 19  specs/node_spec.js
19  specs/node_spec.js
@@ -158,6 +158,16 @@ describe("Jaml.Node", function() {
158 158
     });    
159 159
 
160 160
     it("renders arrays of arrays too", function(){
  161
+       expect(fooBar.addChild([[new Jaml.Node("x"), [new Jaml.Node("y")]]]).
  162
+                     addChild(new Jaml.Node("z")).render()).
  163
+      toEqual("<fooBar>\n" +
  164
+              "  <x/>\n" +
  165
+              "  <y/>\n" +
  166
+              "  <z/>\n" +
  167
+              "</fooBar>\n");
  168
+    });    
  169
+
  170
+    it("renders children of children in arrays properly", function(){
161 171
       expect(fooBar.addChild([[new Jaml.Node("x").addChild(new Jaml.Node("J")), 
162 172
                               [new Jaml.Node("y").addChild(new Jaml.Node("K"))]]]).
163 173
                     addChild(new Jaml.Node("z")).render()).
@@ -172,15 +182,6 @@ describe("Jaml.Node", function() {
172 182
              "</fooBar>\n");
173 183
     });    
174 184
 
175  
-    it("renders children of children in arrays properly", function(){
176  
-       expect(fooBar.addChild([[new Jaml.Node("x"), [new Jaml.Node("y")]]]).
177  
-                     addChild(new Jaml.Node("z")).render()).
178  
-      toEqual("<fooBar>\n" +
179  
-              "  <x/>\n" +
180  
-              "  <y/>\n" +
181  
-              "  <z/>\n" +
182  
-              "</fooBar>\n");
183  
-    });    
184 185
   })
185 186
   
186 187
   describe("textnode children", function() {

0 notes on commit c6745f2

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