From 07ddee75789e301b49b252405196f05de2367f74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 25 Oct 2013 10:29:16 +0200 Subject: [PATCH] smartxml: test fix - actually make sure we are appending, not prepending --- src/smartxml/smartxml.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() { -- 2.20.1