refactoring: common things in constructor, dom construction in a separate function
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / canvas.test.js
index 67f59b6..902cb34 100644 (file)
@@ -33,6 +33,7 @@ describe('new Canvas', function() {
 
         expect(c.doc().children()).to.have.length(3);
         expect(c.doc().children()[0].canvas).to.equal(c);
+        expect(c.doc().children()[0].data('wlxmlNode').sameNode(doc.root));
     });
 });