X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2f3c62f37144eb3878382f9cc655848965faea02..3b0a39df2e007f33b027b665f0f42604aecfc8b9:/src/smartxml/smartxml.test.js diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index 2ccfa6d..b33ef1f 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -158,6 +158,16 @@ describe('smartxml', function() { }); }); + describe('Basic TextNode properties', function() { + it('can have its text set', function() { + var node = elementNodeFromXML('
Alice
'), + textNode = node.contents()[0]; + + textNode.setText('Cat'); + expect(textNode.getText()).to.equal('Cat'); + }); + }); + describe('Manipulations', function() { it('appends element node to another element node', function() {