From ad1f72d773192f688ed9e55dbf6780756e379d73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 9 Dec 2013 09:55:22 +0100 Subject: [PATCH 1/1] Linting, minor test description fix --- src/smartxml/smartxml.test.js | 7 +++---- src/wlxml/extensions/list/list.test.js | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index bb82467..5d2bbb7 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -736,15 +736,14 @@ describe('smartxml', function() { expect(event.meta.node.sameNode(a)); }); - it('doesn\'t emit nodeDetached event for already out of document moved to out of document node: ' + insertionMethod, function() { + it('doesn\'t emit nodeDetached event for already out of document node moved to out of document node' + insertionMethod, function() { var doc = getDocumentFromXML('
'), - a = doc.root.contents()[0], spy = sinon.spy(); doc.on('change', spy); var newNode = doc.createDocumentNode({tagName: 'b'}); - var newNodeInner = newNode.append({tagName:'c'}); + newNode.append({tagName:'c'}); expect(spy.callCount).to.equal(0); }); @@ -831,7 +830,7 @@ describe('smartxml', function() { }); describe('Extension API', function() { - var doc, extension, elementNode, textNode, testClassNode; + var doc, extension, elementNode, textNode; beforeEach(function() { doc = getDocumentFromXML('
Alice
'); diff --git a/src/wlxml/extensions/list/list.test.js b/src/wlxml/extensions/list/list.test.js index fd6089e..87c47c7 100644 --- a/src/wlxml/extensions/list/list.test.js +++ b/src/wlxml/extensions/list/list.test.js @@ -148,8 +148,7 @@ describe('Lists extension', function() { ')), list = doc.root.contents()[0], item1 = list.contents()[0], - item2 = list.contents()[1], - item3 = list.contents()[2]; + item2 = list.contents()[1]; doc.extractItems({item1: item1, item2: item2}); @@ -175,7 +174,6 @@ describe('Lists extension', function() { \ ')), list = doc.root.contents()[0], - item1 = list.contents()[0], item2 = list.contents()[1], item3 = list.contents()[2]; -- 2.20.1