From ee5531417e78b332ff150401a27eec8fe67ef125 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 17 Jun 2014 09:57:34 +0200 Subject: [PATCH] wlxml: fix tests - extensions needs to be registered before querying nodes --- src/wlxml/wlxml.test.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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() { -- 2.20.1