X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0f406b246f9261651b5982be71a49189349c8e3e..8bf6c2bb6ef0a358a3591d19d6aff7a1f7f22b92:/modules/documentCanvas/tests/utils.js diff --git a/modules/documentCanvas/tests/utils.js b/modules/documentCanvas/tests/utils.js index e23808c..cf1f7c2 100644 --- a/modules/documentCanvas/tests/utils.js +++ b/modules/documentCanvas/tests/utils.js @@ -1,7 +1,6 @@ -define(['libs/jquery-1.9.1.min'], function($) { +define(['libs/jquery-1.9.1.min', 'libs/chai'], function($, chai) { return { cleanUp: function(xml) { - var rmws = function(node) { if(node.nodeType === 3) { node.data = $.trim(node.data); @@ -24,6 +23,27 @@ define(['libs/jquery-1.9.1.min'], function($) { .replace(/(<\/.*>)\s*(<.*>)/gm, '$1$2'); return $.trim(toret);*/ return $('