Permalink
Browse files

create second level node, with test

  • Loading branch information...
1 parent cd0638a commit b2f6193f79924310c3edb88ad587946b7012801d @ajlopez committed Jul 3, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/getData.js
View
@@ -19,3 +19,11 @@ result = tree.getData('/node1');
assert.ok(result);
assert.ok(result.data);
assert.equal(result.data, 2);
+
+tree.createNode('/node1/subnode2', { data: 3 });
+
+result = tree.getData('/node1/subnode2');
+assert.ok(result);
+assert.ok(result.data);
+assert.equal(result.data, 3);
+

0 comments on commit b2f6193

Please sign in to comment.