X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fspec%2Fmkws-pazpar2.js;h=66b055734f345cdbb92701f2ccaf716bd2ca235e;hb=558e6fcaed519baa8e9906ad106a43d31cc83c53;hp=a8495e6560938e4fa639760d703b90c217518a5d;hpb=1b73e94f145bea11cb2594cb13aea45a7d777c4f;p=mkws-moved-to-github.git diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index a8495e6..66b0557 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -9,8 +9,10 @@ var debug = function (text) { mkws.debug_function(text) } - -var jasmine_config = {}; +// Define empty mkws_config for simple applications that don't define it. +if (jasmine_config == null || typeof jasmine_config != 'object') { + var jasmine_config = {}; +} /* check config for jasmine test * @@ -38,6 +40,7 @@ beforeEach(function () { if (!jasmine_config.hasOwnProperty(key)) { jasmine_config[key] = jasmine_config_default[key]; } + debug("jasmine config: " + key + " => " + jasmine_config[key]); } });