fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smartxml: test fix - actually make sure we are appending, not prepending
[fnpeditor.git]
/
src
/
smartxml
/
smartxml.test.js
diff --git
a/src/smartxml/smartxml.test.js
b/src/smartxml/smartxml.test.js
index
29c4244
..
b12f127
100644
(file)
--- 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'}),
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(node2);
+ node1.append(node3);
expect(node1.contents()[0].sameNode(node2)).to.be.true;
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() {
});
it('prepends element node to another element node', function() {