From: Aleksander Ɓukasz Date: Tue, 17 Jun 2014 07:57:34 +0000 (+0200) Subject: wlxml: fix tests - extensions needs to be registered before querying nodes X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/ee5531417e78b332ff150401a27eec8fe67ef125?ds=inline wlxml: fix tests - extensions needs to be registered before querying nodes --- diff --git a/src/wlxml/wlxml.test.js b/src/wlxml/wlxml.test.js index 7c69bdb..2b495a8 100644 --- a/src/wlxml/wlxml.test.js +++ b/src/wlxml/wlxml.test.js @@ -185,17 +185,10 @@ describe('WLXMLDocument', function() { }); describe('Extension', function() { - var doc, extension, elementNode, textNode, testClassNode; + var doc, extension, testClassNode; beforeEach(function() { doc = getDocumentFromXML('
Alice
'); - elementNode = doc.root; - textNode = doc.root.contents()[0]; - testClassNode = doc.root.contents('.test_class'); - extension = {}; - - expect(testClassNode.object).to.be.undefined; - }); it('allows adding method to an ElementNode of specific class', function() {