X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/42c62a9c47f2d316ae1e0c8c854da72a4d3f1243..18d3b922d43d185d122e1ac9d86e827c67f9e126:/tests/main.js?ds=sidebyside diff --git a/tests/main.js b/tests/main.js index ba4aa38..e2028fa 100644 --- a/tests/main.js +++ b/tests/main.js @@ -6,6 +6,12 @@ return (/\.test\.js$/).test(file); }); + /* globals window */ + // This installs noop i18n functions so that tests can work with i18nized code + window.gettext = window.interpolate = function() { + return Array.prototype.slice.call(arguments, 0); + }; + require({ baseUrl: '/base/src/editor', deps: tests, @@ -13,7 +19,9 @@ paths: { 'fnpjs': '../fnpjs', - 'libs': '../../libs' + 'libs': '../../libs', + 'smartxml': '../smartxml', + 'wlxml': '../wlxml' }, map: {