Permalink
Browse files

oops got these test descriptions backwards

  • Loading branch information...
sconover authored and edspencer committed Dec 8, 2010
1 parent 0bfa046 commit c6745f2bf1237774c13b24ccf95fa44c079669a5
Showing with 10 additions and 9 deletions.
  1. +10 −9 specs/node_spec.js
View
@@ -158,6 +158,16 @@ describe("Jaml.Node", function() {
});
it("renders arrays of arrays too", function(){
+ expect(fooBar.addChild([[new Jaml.Node("x"), [new Jaml.Node("y")]]]).
+ addChild(new Jaml.Node("z")).render()).
+ toEqual("<fooBar>\n" +
+ " <x/>\n" +
+ " <y/>\n" +
+ " <z/>\n" +
+ "</fooBar>\n");
+ });
+
+ it("renders children of children in arrays properly", function(){
expect(fooBar.addChild([[new Jaml.Node("x").addChild(new Jaml.Node("J")),
[new Jaml.Node("y").addChild(new Jaml.Node("K"))]]]).
addChild(new Jaml.Node("z")).render()).
@@ -172,15 +182,6 @@ describe("Jaml.Node", function() {
"</fooBar>\n");
});
- it("renders children of children in arrays properly", function(){
- expect(fooBar.addChild([[new Jaml.Node("x"), [new Jaml.Node("y")]]]).
- addChild(new Jaml.Node("z")).render()).
- toEqual("<fooBar>\n" +
- " <x/>\n" +
- " <y/>\n" +
- " <z/>\n" +
- "</fooBar>\n");
- });
})
describe("textnode children", function() {

0 comments on commit c6745f2

Please sign in to comment.