X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/4c4ed78f47e27c37bbe1bbcd67fc66f4dbc94d70..422314851c0b7ce1f0a5209ca09960a47856d173:/src/smartxml/smartxml.test.js diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index c9264bc..2198795 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -45,13 +45,25 @@ describe.only('smartxml', function() { describe('Manipulations', function() { - it('appende element node to another element node', function() { + it('appends element node to another element node', function() { var node1 = elementNodeFromParams({tag: 'div'}), node2 = elementNodeFromParams({tag: 'a'}); node1.append(node2); expect(node1.contents()[0].sameNode(node2)).to.be.true; }); + it('unwraps element node contents', function() { + var node = elementNodeFromXML('