X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2ceaf44955f0f54fa0336978586bb8d9f4d7890b..75d2183aafd4b2d3e94c17f6c3c8ee0d8a4738e4:/src/wlxml/extensions/list/list.test.js diff --git a/src/wlxml/extensions/list/list.test.js b/src/wlxml/extensions/list/list.test.js index f15d75b..10a6e91 100644 --- a/src/wlxml/extensions/list/list.test.js +++ b/src/wlxml/extensions/list/list.test.js @@ -6,11 +6,13 @@ var chai = require('libs/chai'), wlxml = require('wlxml/wlxml'), expect = chai.expect, $ = require('libs/jquery'), - lists = require('wlxml/extensions/list/list'); + listsExtension = require('wlxml/extensions/list/list'); var getDocumentFromXML = function(xml, options) { - return wlxml.WLXMLDocumentFromXML(xml, options || {}); + var doc = wlxml.WLXMLDocumentFromXML(xml, options || {}); + doc.registerExtension(listsExtension); + return doc; }; var removeEmptyTextNodes = function(xml) { @@ -28,7 +30,7 @@ var removeEmptyTextNodes = function(xml) { }; -describe.only('Lists extension', function() { +describe('Lists extension', function() { describe('creating lists', function() { it('allows creation of a list from existing sibling DocumentElements', function() {