From: Aleksander Ɓukasz Date: Fri, 25 Oct 2013 08:29:16 +0000 (+0200) Subject: smartxml: test fix - actually make sure we are appending, not prepending X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/07ddee75789e301b49b252405196f05de2367f74?ds=sidebyside;hp=9156bcda05de78865d7f2ef202824dd2a1a03ea1 smartxml: test fix - actually make sure we are appending, not prepending --- diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index 29c4244..b12f127 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -253,9 +253,12 @@ describe('smartxml', function() { it('appends element node to another element node', function() { var node1 = elementNodeFromParams({tag: 'div'}), - node2 = elementNodeFromParams({tag: 'a'}); + node2 = elementNodeFromParams({tag: 'a'}), + node3 = elementNodeFromParams({tag: 'p'}); node1.append(node2); + node1.append(node3); expect(node1.contents()[0].sameNode(node2)).to.be.true; + expect(node1.contents()[1].sameNode(node3)).to.be.true; }); it('prepends element node to another element node', function() {